xxxxxxxxxx
31
let m = 40;
function setup() {
createCanvas(400, 400);
}
function draw() {
background(0);
let x, y;
for (x = m; x <= width - m; x += m) {
for (y = m; y <= height - m; y += m) {
noStroke();
rect(x - 1, y - 1, 3, 3);
stroke(255, 100);
//Symmetrical lines
line(x, y, width / 2, height / 2);
line(x, y, width, height);
line(x, y, 0, 0);
line(x, y, width, 0);
line(x, y, 0, height);
line(x, y, width / 2, 0);
line(x, y, 0, height / 2);
line(x, y, width / 2, height);
line(x, y, width, height / 2);
}
}
}