float angle=0; void setup() { size(300, 300); noStroke(); smooth(); frameRate(8); } void drawButton(float x,float y,int a,int b) { fill(a); ellipse(x,y, 60, 60); fill(b,a,0); ellipse(x,y,40,40); } void draw() { background(255); float x = 150+cos(angle)*80; float y = 150+sin(angle)*80; int a = int(random(0,255)); int b = int(random(100,200)); drawButton(x,y,a,b); angle += 0.03; }