xxxxxxxxxx
21
let tx = 0;
let ty = 500;
function setup() {
createCanvas(windowWidth, windowHeight, WEBGL);
stroke(0);
strokeWeight(2);
}
function draw() {
background(0);
translate(-200, -200);
rotateX(frameCount * noise(tx) / 100);
rotateY(frameCount * noise(ty) / 100);
for (let i = 0; i < 20; i++){
translate(30, 20);
box(100, tx*0.5, ty*0.5);
}
tx += 0.001;
ty += 0.001;
}