xxxxxxxxxx
function setup() {
createCanvas(600, 600, WEBGL);
colorMode(HSB);
noStroke();
}
function draw() {
background(0);
randomSeed(0);
rotateX(mouseY * 0.01);
rotateY(mouseX * 0.01);
for(var i=0; i<200; i++) {
rotateX(random(TAU));
rotateY(random(TAU));
fill((i%3)*80, 200, random(50, 250));
push();
translate(0, 0, 500 + sin(frameCount*0.1+i));
rect(-500, -500, 1000, 1000);
pop();
}
}