We are about to switch to a new forum software. Until then we have removed the registration on this forum.
How does processing determine how many segments an ellipse or stroke is made of? Is there a way to increase or decrease the amount of sides an ellipse has?
Answers
In 3D this would be sphereDetail for a sphere...
iirc, the ellipse method chooses this for you, based on the size of the ellipse (more segments for bigger ellipses)
see the accuracy variable here:
https://github.com/processing/processing/blob/f434d2c2303c8d03e265e14972b652c595e6cdf7/core/src/processing/opengl/PGraphicsOpenGL.java#L8756
So, if I were to use scale(); I'd be able to see the individual lines?
try it. it's 10 lines of code.
3 lines. and apparently no.
If you make an ellipse yourself with beginShape, endShape and a for-loop, you can define the number of sides.
For line segments
I don't know about your first question, but I'm guessing it depends on the underlying renderer that Processing uses; the default is based on the AWT library. See the source code for more.