xxxxxxxxxx
24
function setup() {
createCanvas(400, 400, WEBGL);
noiseSeed(50);
}
function draw() {
background(0);
translate(-width / 2, -height / 2);
lights();
// blendMode(ADD);
let inc = 0.01;
specularMaterial(255);
shininess(50);
fill(0);
let r = 25;
let xoff = 0 + frameCount * 0.01;
let yoff = 1000 + frameCount * 0.01;
for (let i = 0; i < 100; i++) {
circle(noise(xoff) * width, noise(yoff) * height, r * 2);
xoff += inc;
yoff += inc;
}
}