xxxxxxxxxx
32
function setup() {
createCanvas(400, 400, WEBGL);
background(0);
imageMode(CORNER);
}
function draw() {
background(0);
/*
fill (0,0,0);
rect (-200, -200, 400, 400);
*/
fill (255);
rotateY(frameCount * 0.02);
for (let j = 0; j < 13; j++) {
push();
for (let i = 0; i < 50; i++) {
translate(
sin(frameCount * 0.002 + j) * 100,
sin(frameCount * 0.002 + j) * 100,
i * 0.1
);
rotateZ(frameCount * 0.010);
push();
sphere(8, 6, 4);
pop();
}
pop();
}
}