Skip to content

Commit

Permalink
Hopefully centred?
Browse files Browse the repository at this point in the history
  • Loading branch information
RexMortem committed Dec 20, 2024
1 parent 6688c00 commit 9cede9b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions Boids.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ <h2> Contents </h2>

<h2> What you'll create </h2>

<div id="BoidContainer"></div>
<script src="/SimulationLabs/Scripts/Boids/Boids.js"></script>

<h2> Prereqs </h2>
Expand Down
4 changes: 3 additions & 1 deletion Scripts/Boids/Boids.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ function addRandomDirection(){
}

function setup(){
createCanvas(400, 400);
let cnv = createCanvas(400, 400);
cnv.parent('BoidContainer');

background(140, 205, 230);
}

Expand Down

0 comments on commit 9cede9b

Please sign in to comment.