void setup(){ size(600,600); frameRate(30); strokeWeight(0); smooth(); } void draw() { background(0); float a=random(height); float b=random(width); float c=random(height/2); float d=random(width/4); drawMyShape(a,b,c,d); } void drawMyShape(float a, float b, float c, float d) { fill(255,0,0); rect(a, b, 35 ,35); fill(255, 100, 0); ellipse(c, d, 35, 35); }