xxxxxxxxxx
28
function setup() {
createCanvas(600, 600);
}
function draw() {
background(25);
const NUM_GRID = 100;
const W = width/(NUM_GRID);
// Grid
stroke(25);
for(let i=0; i<NUM_GRID; i++) {
line(i*W, 0, i*W, height);
}
for(let i=0; i<NUM_GRID; i++) {
line(0, i*W, width, i*W);
}
// Circle
let cx = NUM_GRID/2.0;
let cy = NUM_GRID/2.0;
let r = NUM_GRID*W/3;
stroke(50)
// circle(cx*W, cy*W, r*2);
}