Trying to drawn lines with round ends [using strokeCap(ROUND)] in P3D mode, but they stay square

edited March 2017 in Questions about Code

I'm trying to draw lines with rounded end in 3D mode, but they always seem to have square ends. (In ordinary default 2D mode lines can have rounded ends).

If I use strokeCap(ROUND) and then draw lines in P3D mode after I have called "size(1920,1080,P3D);" the line ends are square:

size(1920,1080,P3D);

...

stroke(160 , 30, 155 );

strokeWeight(strokeweight1);

strokeCap(ROUND);

line(x1,y1, Zcoord, x2,y2, Zcoord );

Am I missing a command? Could it be that Round-ended lines are not supported in 3D?

Thanks!

Answers

Sign In or Register to comment.