xxxxxxxxxx
function setup() {
createCanvas(windowWidth, windowHeight);
background(100);
//Schnelligkeit bestimmen
//frameRate(5);
}
function draw() {
background (100);
noStroke();
//Wo Start; wie lange; erhöhen um wie viel (Schritte)
for(y=10; y<height; y+=20)
{
for(x=10; x<width; x+=20)
{
push();
r = random(50)
//fill(random(255));
translate(x,y);
rotate(sin(millis()/1000));
rect(0, 0, 20, 20);
//ellipse(x, y, r, r);
pop();
}
}
}