xxxxxxxxxx
function setup() {
createCanvas(windowWidth, windowHeight);
background(100);
frameRate(10);
}
function draw() {
background(255);
//Matrix
for (y=100; y<height; y+=100)
{
for(x=100; x<width; x+=100)
{
r=random(30);
}
}
for (y=100; y<height; y+=100)
{
for(x=100; x<width; x+=100)
{
push();
r=random(40)
noStroke();
fill(random(150),random(255),255);
translate(x,y);
rotate(sin(millis()/1000));
rect(0,0,r,r);
pop();
}
}
}