xxxxxxxxxx
function setup() {
createCanvas(windowWidth, windowHeight);
background(0);
}
function draw() {
//background(0);
colorMode(HSB, 360, 100, 100);
//if (mouseIsPressed)
for(i=0; i<width; i++) //Schleife und Loops machen
{
var color = map(i, 0, width, 0, 360);
stroke(color, 100, 100);
line(i, 0, i, height);
}
translate(width/2, height/2);
rotate( radians(color) );
rectMode(CENTER);
noFill();
//rect(0, 0, 300, 300);
}