color base = 128; //color base float angle = 0; // angle: used for color and coordinates, so it makes a pattern float rate = 0.1;// rate of change for angle and radius float rad = 0; // radius of spiraling pattern void setup(){ size(500,500); // draw canvas background(255); // white background smooth(); noStroke(); // no outlines for circle } void draw(){ // this setup for the color makes a neat pattern fill(base+125*cos(angle),base+125*sin(angle),base+250*sin(angle)*cos(angle)); float x = 250 + sin(angle)*rad; // center the spiraling in the float y = 250 + cos(angle)*rad; // middle of the canvas ellipse(x,y,14,14); //draw the circle: by making it smallish, it starbursts later on angle += rate; // advance angle rad += rate; // advance radius }