xxxxxxxxxx
54
var noise1 = 0
var noise2 = 10
var noise3 = 230
var noise4 = 4260
let x1;
let x2;
let x3;
let y2;
let x
let y
function setup() {
createCanvas(800, 500);
colorMode(HSB, 360);
// noLoop();
let n1 = noise(100);
console.log(n1);
x= width/2
y = height/2
}
function draw() {
background(50);
for (let i = 0; i < 1000; i++) {
x1 = map(noise(noise1), 0, 1, 150, 650);
y1 = map(noise(noise2), 0, 1, 0, height);
noise1 += 0.01;
noise2 += 0.01;
stroke(map(noise(noise1), 0, 1, 0, 360), map(noise(noise2), 0, 1, 0, 360), random(330, 360));
strokeWeight(1);
if(mouseX>0&&mouseY>0&&mouseX<width&&mouseY<height){
x= mouseX;
y=mouseY;
}else{
x= width/2
y = height/2
}
line(x, y, x1, y1);
}
frameRate(30);
}