Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save bevchou/4a3c31f0fcb92ee25123cf247b28270e to your computer and use it in GitHub Desktop.
Save bevchou/4a3c31f0fcb92ee25123cf247b28270e to your computer and use it in GitHub Desktop.
for (let i = 0; i < height + 20; i += 20) {
for (let m = 0; m < x + 20; m += 20) {
if (colorOn){
r = random (100, 240);
g = random (100, 240);
c = random (100, 240);
fill(r, g, c);
} else {
fill(random(110, 220))
}
push();
rectMode(CENTER);
rect(m, i, 10, 10);
pop();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment