/* Spherical Coordinates Tutorial File April, 2008 blprnt@blprnt.com */ import processing.opengl.*; import java.util.*; Sphere mySphere; //This is our main sphere object. void setup() { //code here is executed once, when the app initializes size(500,500,OPENGL); smooth(); background(255); //create an instance of the Sphere Class mySphere = new Sphere(); mySphere.init(); }; void draw() { //code here is executed once per frame mySphere.update(); mySphere.render(); }; void mousePressed() { mySphere.addSphereItem(); };