xxxxxxxxxx
function setup() {
createCanvas(640, 640);
}
function draw() {
noFill();
noLoop();
background(255);
strokeWeight(0.5);
x1 = width * 0.4;
x2 = width - x1;
y1 = y2 = height / 2;
for (i = 0.001; i < 2.5; i *= 1.01) {
r = dist(x1, y1, x2, y2) * (1 + i);
g = int(7/i)
stroke(g,g,g, 150/i);
ellipse(x1, y1, r, r);
ellipse(x2, y2, r, r);
}
}