xxxxxxxxxx
22
let noiseX = 0.0
function setup() {
createCanvas(400 , 400);
colorMode(HSB, 100);
noStroke();
}
function draw() {
// Leave the background semi-transparent to see previous circles fade out
background(0, 0, 0, 10);
fill(frameCount % 100, 50, 100);
// Multiple the current noise value by 400 to get the size I want
let diam = noise(noiseX) * 400;
circle(200, 200, diam);
// Increase the noise x position a little bit each tick of the draw loop
noiseX = noiseX + 0.01;
}