xxxxxxxxxx
function setup() {
createCanvas(windowWidth, windowHeight);
background(255); //Hintergrundfarbe
}
function draw() { //Beginn zu Zeichnen
stroke( random (20, 25), 0, 255);
noFill(); //Keine Füllung der Formen
rectMode(CENTER);
translate(mouseX, mouseY); //Mausbewegung X und Y
rotate( random(PI));
stroke(200, 25,50);
rotate( radians(random(1800)) );
rect(0, 0, 350, 10, 10);
//rect(0, 0, 20, 20); //Gewählte Form: Rechteck
//ellipse(0, 0, 50, 50); //Gewählte Form: Kreis
}