xxxxxxxxxx
34
function setup() {
createCanvas(800, 800);
divfac = width/40;
}
function draw() {
background(0);
strokeWeight(2 * ((divfac/((frameCount/20) %5))));
for (let x = 0; x < width; x += divfac) {
for (let y = 0; y < height; y += divfac) {
let color =
(
128 +
(128 *
sin(
sqrt(
(x - width / 2) * (x - width / 2) +
(y - height / 2) * (y - height / 2)
) / 20 + frameCount / 40
)
)
+
128 + (128 * sin(((x && y) /40) + (cos(frameCount / 10)))+ 10)
+ (128 * cos(y/20 - y/40 ) )
)/2
stroke(color);
point(x,y );
}
}
}