xxxxxxxxxx
41
var xoff1 = 0;
var yoff1 = 1000;
var boff1 = 0;
var xoff2 = 333;
var yoff2 = 33333;
var boff2 = 33;
function setup() {
createCanvas(windowWidth, windowHeight);
background(25);
}
function draw() {
blendMode(LIGHTEST);
let x = map(noise(xoff1), 0, 1, 0, windowWidth);
let y = map(noise(yoff1), 0, 1, 0, windowHeight);
let b = map(noise(boff1), 0, 1, 0, 255);
let d1 = int(dist(x, y, windowWidth-x, windowHeight-y));
d1 = map(d1, 1, max(windowWidth, windowHeight), 25, 1);
let x2 = map(noise(xoff2), 0, 1, 0, windowWidth);
let y2 = map(noise(yoff2), 0, 1, 0, windowHeight);
let b2 = map(noise(boff2), 0, 1, 0, 255);
let d2 = int(dist(x2, y2, x, y));
d2 = map(d2, 1, max(windowWidth, windowHeight), 3, 1);
noStroke();
fill(b);
ellipse(x, y, d1, d1);
ellipse(windowWidth-x, windowHeight-y, d1, d1);
fill(b2);
ellipse(x2, y2, d2, d2);
xoff1 += 0.002;
yoff1 += 0.002;
boff1 += 0.01;
xoff2 += 0.001;
yoff2 += 0.001;
boff2 += 0.005;
}