Look under the hood - methods

Hey,

Newb here. Is it possible to see the code that makes up different methods such as rect(), ellipse() etc.?

Cheers,

Sometime you will find things in the source code – for example, check out TRIANGLE_FAN or sphere() to see exactly how it works. Sometimes you will find the interface, but the actual lowest-level implementation of primitives will depend on the renderer – for example, how points or lines are handled in the JAVA2D, P2D, or P3D. P2D and P3D are OpenGL-based, so there some low-level drawing logic is actually happening in OpenGL, not in Processing(Java).