xxxxxxxxxx
50
let t = 0.0;
let noiseSpeed;
let c;
let h;
let hueCap;
let hSpeed;
function setup() {
//createCanvas(600, 600);
createCanvas(windowWidth, windowHeight);
c = color(100,100,100);
noStroke();
background(250);
h=140;
hSpeed=1;
hueCap = 300
}
function draw() {
//background(250);
colorMode(HSB);
c = color(h,80,90);
if(h > hueCap || h < 1)
{
hSpeed *= -1;
}
h+=hSpeed;
//noiseSpeed = map(mouseX,0,width,0.005,0.015);
noiseSpeed = 0.01;
//background(255);
t=t+noiseSpeed;
//stroke();
let x= noise(t) * width;
let y= noise(t + 1000) * height;
//let y= noise(t + 1000) * width;
//fill(230,200,0);
fill(c);
//fill(0);
ellipse(x,y,50,50);
}