Calling strokeWeight() while P3D is true

size(500, 500, P3D); strokeWeight(5); line(100, 100, 400, 400);

I want to draw a line with a width of 5. However, after calling strokeWeight() while P3D is true, the width of the line is still 1. Why doesn't the code show a line with a width of 5?

Answers

  • if you are not using 3D objects, use the default renderer or P2D.
    -Does this help?

Sign In or Register to comment.