xxxxxxxxxx
function setup() {
createCanvas(windowWidth, windowHeight);
background(100);
}
function draw() {
//Hintergrund (2. bzw. 4. Wert=Transparenz)
background(100, 40);
noFill();
//stroke(255);
//rect(random(width), random(height), 20, 20);
//ellipse(random(width), random(height), 20, 20);
//stroke(255,0,50);
//NoiseDiagonale
//rect(noise(millis())*width, noise(millis())*height, 20, 20);
//NoiseRandom
//rect(noise(millis()-1)*width, noise(millis())*height, 20, 20);
//NoiseLines
//stroke(255);
//line(noise(millis())*width, noise(millis()-1)*height, 10, 10);
//Abhängig von Mausposition
//stroke(255);
//line(mouseX, mouseY, noise(millis())*width, noise(millis()-1)*height, 10, 10);
//Unterschied Noise/Random Sehr änlich und doch unterschiedlich !
//noise
stroke(255);
ellipse(width/4, height/2, noise(millis())*height, noise(millis())*height);
//random
r = random(height);
ellipse(3*width/4, height/2, r,r);
}