void setup(){ size(400,400); frameRate(5); strokeWeight(1); smooth(); background(0); } void draw(){ background(0); ball l=new ball(); l.drawMe(); } class ball{ float a = random(height); float b = random(width); void drawMe() { background(0); fill(200,40,200); ellipse(50+a, b, 50,50); fill(255, 253, 110); ellipse(100+b,a , 60, 60); fill(160,100,250); rect( b, a, 40,40); } }