mirror of
https://github.com/Cametendo/EMVs-Creative-coding.git
synced 2026-06-20 17:45:02 +02:00
Add shapes
This commit is contained in:
13
labyrinth.js
13
labyrinth.js
@@ -1,8 +1,17 @@
|
|||||||
function setup() {
|
let x, y = 0;
|
||||||
|
|
||||||
|
function setup() {
|
||||||
|
createCanvas(800, 800);
|
||||||
|
strokeWeight(5);
|
||||||
|
background("gray");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function draw() {
|
function draw() {
|
||||||
|
for (let x = 0; x <= width; x += 40) {
|
||||||
|
for (let y = 0; y <= height; y += 40) {
|
||||||
|
square(x, y, 40);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
line(width, height, -800, -800); // :3
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user