xxxxxxxxxx
function setup() {
createCanvas(windowWidth, windowHeight);
background(0);
rectMode(CENTER);
}
function draw() {
background(0, 5);
translate(width/2, height/2);
let s = map(sin(millis()/1000), -2, 3, -100, 150);
let r = random(PI);
let r1 = millis()/1000;
let r2 = map(sin(millis()/1500), -4, 1, 6, PI);
noFill();
stroke(255);
//translate(s, 0);
push();
rotate(r);
triangle(0, 0, 10, -50, 5, 100);
pop();
push();
translate(-300, 0);
rotate(r1);
rect(0, 0, -200, 100);
rect(50, -50 , 200, -100)
pop();
push();
translate(300, 0);
rotate(r2);
ellipse(0, 0, 500, -300);
pop();
}