let speed=400; let a=500; let b=500; let speed2=50 function setup(){ createCanvas(500,500); background(255,40,90); } function draw(){ translate(a+random(-speed,speed2),b+random(-speed,speed2)); rotate(random(-speed2,speed2)) rect(0,0,50,50); }