We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I'm trying to find out how does the sphere() function work. I've searched the repository, but I wasn't able to find any functions source code at all. Is there any special folder where all the functions are? Thank you for your time in advance.
Answers
Your first stop should be the
PApplet
class: https://github.com/processing/processing/blob/master/core/src/processing/core/PApplet.javaDoing a ctrl+f on "sphere" shows this:
That
g
variable is of typePGraphics
: https://github.com/processing/processing/blob/master/core/src/processing/core/PGraphics.javaDoing another ctrl+f of "sphere" gives you this: