xxxxxxxxxx
43
function setup() {
createCanvas(2598/4, 2126/4);
//noLoop();
frameRate(4);
colorMode(HSB);
pixelDensity(4);
}
let x, y, opacity;
let step, freq;
function draw() {
background(255);
blendMode(DARKEST)
noStroke();
step = random(2, 30);
wi = random(width/2, width);
freq = round(random(3, 6));
for (let i = 0; i < freq; i++) {
gradient(random(0, width/2), random(height/2), wi, step);
}
if (frameCount < 300) {
save("gradient_BG_top-" + frameCount + ".jpg");
console.log("saved" + frameCount);
} else {
console.log("done" + frameCount);
}
blendMode(BLEND)
}
function gradient(x,y, s, jump) {
let o = 0;
//let s = random(200);
for (let r = s; r > 0; r-=jump) {
fill(54, o, 100);
ellipse(x, y, r, r);
o++;
}
}