You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add example simulation in ch-3, with interactivity
- add code the intended interactivity as radio buttons
- change the initial label text in ch-2 normal walker simulation
- add required lines for the simulation to work in ch-3 content files
Copy file name to clipboardExpand all lines: src/chapter3/_section3_1.md
+7-2Lines changed: 7 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,7 @@
1
1
---
2
2
tags: 'chap3'
3
+
script: '/assets/scripts/chap3_01.js'
4
+
id: 'sec1'
3
5
permalink: false
4
6
---
5
7
@@ -107,7 +109,7 @@ Applied parameters:
107
109
* Velocity (both magnitude and direction)
108
110
109
111
range:
110
-
- mag $\in (0,$ diameter $/2)$,
112
+
- mag $\in (0,$ diameter $/2)$,
111
113
- direction $\in (-1,1)$
112
114
```js
113
115
/* Code for a 2D RW that is manupilated according to perlin noise.
@@ -175,7 +177,10 @@ function draw() {
175
177
w.step('direction');
176
178
}
177
179
```
178
-
A simulation of a similar implementation of the Perlin Noise walker is added to the 4^th^ chapter, in section [4.3.4]()
180
+
181
+
{% include "simulation-grid.html" %}
182
+
183
+
A simulation of a similar implementation of the Perlin Noise walker is added to the 4^th^ chapter, in section [4.3.4](../chapter4/#434-comparing-implementations-of-random-motion-behaviours)
0 commit comments