float x,y; // center of circle float angle=0, radius=0; // spiral around center void setup() { size(300,300); background(0); smooth(); noStroke(); } void draw() { fill(0,10); rect(0,0,width,height); fill(255); ellipse(x+radius*cos(angle), y+radius*sin(angle), 10,10); angle += radians(5); // 5 degree increments radius += 0.2; } void mousePressed() { x = mouseX; y = mouseY; angle = 0; radius = 0; } // START NO NOTES // code used to capture screenshots void keyReleased() { if(key == '`' && !online) save("sketch.png"); }