xxxxxxxxxx
29
function setup() {
createCanvas(700, 500);
let centerX;
let centerY;
let step = 100;
let fading = 0;
}
function draw() {
background(0);
centerX = width / 2;
centerY = height / 2;
step = 100;
//moons
for (let x = 140; x < width - 60; x += step) {
circle(x, centerY, 70);
//fading
fading=mouseX/2
// for (mouseMoved, x<width-60, map(mouseX, width,0, 0, 70)
// arc(mouseX, centerY, 140, 70, 0 , 2*PI)
pos = rotate2d( noise(pos) ) * pos; // rotate the space
pattern = lines(pos,.5); // draw lines
}
}