We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6688c00 commit 9cede9bCopy full SHA for 9cede9b
Boids.html
@@ -30,6 +30,7 @@ <h2> Contents </h2>
30
31
<h2> What you'll create </h2>
32
33
+ <div id="BoidContainer"></div>
34
<script src="/SimulationLabs/Scripts/Boids/Boids.js"></script>
35
36
<h2> Prereqs </h2>
Scripts/Boids/Boids.js
@@ -20,7 +20,9 @@ function addRandomDirection(){
20
}
21
22
function setup(){
23
- createCanvas(400, 400);
+ let cnv = createCanvas(400, 400);
24
+ cnv.parent('BoidContainer');
25
+
26
background(140, 205, 230);
27
28
0 commit comments