let a =0; let x; let y; function setup(){ createCanvas(500,500); x = width/2; y = height/2; background(120); colorMode(HSB,360,100,100,1); } function draw(){ a+=0.3; fill(random(360),100,100); push(); translate(250,250); rotate(a); translate(-100.-100); triangle(150,30,30,270,270,270); pop(); }