Hi guys,
I ran into an issue when using the Dashed Lines library in Python mode. Basically I would like to display a rectangle with dashed lines but it seems the library doesn’t work correctly when using Python mode.
In Java:
import garciadelcastillo.dashedlines.*;
DashedLines dash;
void setup() {
size(800, 800);
dash = new DashedLines(this);
dash.pattern(30, 10, 15, 10);
}
void draw() {
background(255);
noFill();
rectMode(CORNERS);
dash.rect(200, 100, 400, 500);
}
in Python
add_library('dashedlines')
def setup():
global dash
size(800, 800, P2D)
smooth(8)
dash = DashedLines(this)
dash.pattern(30, 10, 15, 10)
def draw():
background(255)
noFill()
rectMode(CORNERS)
dash.rect(200, 100, 400, 500)
Only ellipse
seems to work ok on both mode.
Do you think there’s a way to overcome this issue ?