float angle = 0.0; float a = 0.05; float b = 200; float c = 82; void setup() { size(500,500); noStroke(); smooth(); } void draw() { background(255); fill(0); float x = b+cos(angle)*c; float y = b+sin(angle)*c; ellipse(x,y,50,50); fill(215,255,0); float x1 = x+cos(angle)*c/2; float y1 = y+sin(angle); ellipse(x1,y1,20,20); fill(130); float x2 = x1+cos(angle); float y2 = y1+sin(angle); ellipse(y2,x2,30,30); angle += a; }