Skip to content

Commit

Permalink
Merge pull request #617 from nature-of-code/notion-update-docs
Browse files Browse the repository at this point in the history
[Notion] Update docs
  • Loading branch information
jasongao97 committed Jan 4, 2024
2 parents be372dd + d492085 commit bbbf492
Show file tree
Hide file tree
Showing 25 changed files with 12 additions and 6 deletions.
4 changes: 3 additions & 1 deletion content/04_particles.html
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,9 @@ <h2 id="a-particle-emitter">A Particle Emitter</h2>
particles.splice(i, 1);
}
}</strong>
}</code></pre>
}

</code></pre>
</td>
<td>
<pre><code>class Emitter {
Expand Down
2 changes: 1 addition & 1 deletion content/05_steering.html
Original file line number Diff line number Diff line change
Expand Up @@ -909,7 +909,7 @@ <h3 id="exercise-510">Exercise 5.10</h3>
<div data-type="example">
<h3 id="example-58-path-following">Example 5.8: Path Following</h3>
<figure>
<div data-type="embed" data-p5-editor="https://editor.p5js.org/natureofcode/sketches/1T-6LupvJ" data-example-path="examples/05_steering/noc_5_06_path_following"><img src="examples/05_steering/noc_5_06_path_following/screenshot.png"></div>
<div data-type="embed" data-p5-editor="https://editor.p5js.org/natureofcode/sketches/1T-6LupvJ" data-example-path="examples/05_steering/noc_5_08_path_following"><img src="examples/05_steering/noc_5_08_path_following/screenshot.png"></div>
<figcaption></figcaption>
</figure>
</div>
Expand Down
2 changes: 1 addition & 1 deletion content/10_nn.html
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ <h3 id="perceptron-steps">Perceptron Steps</h3>
<tr>
<th>Input</th>
<th>Weight</th>
<th>Input <span data-type="equation">\times</span> Weight</th>
<th>Input <span data-type="equation">\boldsymbol{\times}</span> Weight</th>
</tr>
</thead>
<tbody>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class Liquid {

show() {
noStroke();
fill(200);
fill(220);
rect(this.x, this.y, this.w, this.h);
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified content/examples/04_particles/figure_4_8_circles/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified content/examples/04_particles/figure_4_8_image/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified content/examples/05_steering/noc_5_01_seek/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified content/examples/05_steering/noc_5_02_arrive/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion content/examples/05_steering/noc_5_02_arrive/sketch.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function setup() {
}

function draw() {
background(255);
background(255,10);
let mouse = createVector(mouseX, mouseY);

// Draw an ellipse at the mouse position
Expand All @@ -29,4 +29,8 @@ function draw() {
vehicle.arrive(mouse);
vehicle.update();
vehicle.show();
}

function mousePressed(){
save('screenshot.png')
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified content/examples/06_libraries/6_4_polygon_shapes/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,4 @@ function mousePressed() {
target.position.x = mouseX;
target.position.y = mouseY;
recordTime = lifeSpan;
}
}

0 comments on commit bbbf492

Please sign in to comment.