Hi everyone,
I was wondering whether I overlooked an important piece of information or whether it is a bug. When I create my PShape and set it a stroke color, it is completely ignored when using P2D and I cannot find a way to change that color in any way.
This is how I create my shape
PShape pshape = createShape();
pshape.beginShape();
for (Edge e : mc.orderedEdges) {
pshape.vertex(e.A.x, e.A.y);
}
pshape.noFill();
pshape.stroke(255);
pshape.strokeWeight(0.2);
pshape.endShape();
When I then display it using shape(pshape) with setup(2000, 1000), the shape is drawn in white stroke, but if I run the program with setup(2000, 1000, P2D), it is black. And even if I comment out the assignment of the stroke to the pshape and just set the stroke to white before calling shape(pshape), it doesn’t work.
To be honest, I am constantly confused about what works with P2D and what doesn’t, concerning PShapes.
If anyone can help me understand, I would be grateful