Problem with changing the color of a custom shape (line) in P3D
in
Programming Questions
•
5 months ago
At the moment, I am attempting to change the color of a custom shape.
stroke(3);
fill(255, 0, 0);
beginShape();
vertex(x, y, z);
vertex(a, b, c);
endShape();
However, this doesn't change the line to red or change the stroke of the line at all. A black line is drawn instead. The code above is within a for loop within a pushMatrix() popMatrix() block, but the fill in that scope is not black and works as desired.
What would be causing the lack of color/stroke change and what is the solution?
Edit: Now that I look at it more, any stroke isn't changing the width in the program wider than what looks like 1 unit.
Edit: Now that I look at it more, any stroke isn't changing the width in the program wider than what looks like 1 unit.
1