From 0f6e6e79e1e6b5939367d8e6a8aaff798ce237cf Mon Sep 17 00:00:00 2001 From: Boof <97455552+hexahigh@users.noreply.github.com> Date: Mon, 27 Mar 2023 11:31:15 +0200 Subject: [PATCH] test p5.js --- Games/move-cube/index.html | 11 +++++++++++ Games/move-cube/js/draw.js | 17 +++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 Games/move-cube/index.html create mode 100644 Games/move-cube/js/draw.js diff --git a/Games/move-cube/index.html b/Games/move-cube/index.html new file mode 100644 index 0000000..dc7df65 --- /dev/null +++ b/Games/move-cube/index.html @@ -0,0 +1,11 @@ + + + + Cube mover + + + + + + + \ No newline at end of file diff --git a/Games/move-cube/js/draw.js b/Games/move-cube/js/draw.js new file mode 100644 index 0000000..75fe68d --- /dev/null +++ b/Games/move-cube/js/draw.js @@ -0,0 +1,17 @@ +function setup() { + createCanvas(40, 40); +} + +function draw() { + background(220); + //For (var BEGIN; END; INTERVAL){ + //DO SOMETHING } + for (var x = 0; x < width; x += width / 40) { + for (var y = 0; y < height; y += height / 40) { + stroke(0); + strokeWeight(1); + line(x, 0, x, height); + line(0, y, width, y); + } + } +} \ No newline at end of file