xxxxxxxxxx
25
function setup() {
createCanvas(400, 400);
}
function draw() {
background(220);
noStroke();
fill(255);
let gridSize = 50;
for (let y = 0; y <= height; y += gridSize) {
for (let x = 0; x <= width; x += gridSize) {
drawSpinningEllipse(x, y, gridSize, 0, 0.1);
}
}
}
function drawSpinningEllipse(x, y, scl, spd) {
push();
translate(x, y);
rotate(frameCount * spd);
textSize(32);
text("hello", 0, 0);
pop();
}