From 9cede9b20a312832090edf2e6c51410b89a50d3a Mon Sep 17 00:00:00 2001 From: RexMortem <68436000+RexMortem@users.noreply.github.com> Date: Fri, 20 Dec 2024 14:25:14 +0000 Subject: [PATCH] Hopefully centred? --- Boids.html | 1 + Scripts/Boids/Boids.js | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Boids.html b/Boids.html index 0010645..0ee2542 100644 --- a/Boids.html +++ b/Boids.html @@ -30,6 +30,7 @@

Contents

What you'll create

+

Prereqs

diff --git a/Scripts/Boids/Boids.js b/Scripts/Boids/Boids.js index ff50886..e178d57 100644 --- a/Scripts/Boids/Boids.js +++ b/Scripts/Boids/Boids.js @@ -20,7 +20,9 @@ function addRandomDirection(){ } function setup(){ - createCanvas(400, 400); + let cnv = createCanvas(400, 400); + cnv.parent('BoidContainer'); + background(140, 205, 230); }