// Dartmouth CS 2, Winter 2009, Chris Bailey-Kellogg // Notes 7 | Sketch 6 float x,y; // center of circle float angle=0, radius=0; // spiral around center void setup() { background(0); smooth(); noStroke(); } void draw() { background(0); ellipse(x+radius*cos(angle), y+radius*sin(angle), 10,10); angle += radians(5); // 5 degree increments radius += 0.1; } void mousePressed() { x = mouseX; y = mouseY; angle = 0; radius = 0; }