forked from nannou-org/nannou
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Cargo.toml
281 lines (271 loc) · 8.48 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
[package]
name = "nature_of_code"
version = "0.1.0"
authors = [
"JoshuaBatty <joshpbatty@gmail.com>",
"mitchmindtree <mitchell.nordine@gmail.com>",
]
description = "An implementation of Dan Shiffman's The Nature of Code."
readme = "README.md"
keywords = ["creative", "sketch", "nature", "code", "processing"]
license = "MIT"
repository = "https://github.com/nannou-org/nannou.git"
homepage = "https://github.com/nannou-org/nannou"
edition = "2018"
[dev-dependencies]
nannou = { version ="0.19.0", path = "../nannou" }
# Chapter 1 Vectors
[[example]]
name = "1_1_bouncingball_novectors"
path = "chp_01_vectors/1_1_bouncingball_novectors.rs"
[[example]]
name = "1_2_bouncingball_vectors_object"
path = "chp_01_vectors/1_2_bouncingball_vectors_object.rs"
[[example]]
name = "1_2_bouncingball_vectors"
path = "chp_01_vectors/1_2_bouncingball_vectors.rs"
[[example]]
name = "1_3_vector_subtraction"
path = "chp_01_vectors/1_3_vector_subtraction.rs"
[[example]]
name = "1_4_vector_multiplication"
path = "chp_01_vectors/1_4_vector_multiplication.rs"
[[example]]
name = "1_5_vector_magnitude"
path = "chp_01_vectors/1_5_vector_magnitude.rs"
[[example]]
name = "1_6_vector_normalize"
path = "chp_01_vectors/1_6_vector_normalize.rs"
[[example]]
name = "1_7_motion101"
path = "chp_01_vectors/1_7_motion101.rs"
[[example]]
name = "1_8_motion101_acceleration"
path = "chp_01_vectors/1_8_motion101_acceleration.rs"
[[example]]
name = "1_9_motion101_acceleration"
path = "chp_01_vectors/1_9_motion101_acceleration.rs"
[[example]]
name = "1_10_motion101_acceleration"
path = "chp_01_vectors/1_10_motion101_acceleration.rs"
[[example]]
name = "1_11_motion101_acceleration_array"
path = "chp_01_vectors/1_11_motion101_acceleration_array.rs"
# Chapter 2 Forces
[[example]]
name = "2_1_forces"
path = "chp_02_forces/2_1_forces.rs"
[[example]]
name = "2_2_forces_many"
path = "chp_02_forces/2_2_forces_many.rs"
[[example]]
name = "2_3_forces_many_real_gravity"
path = "chp_02_forces/2_3_forces_many_real_gravity.rs"
[[example]]
name = "2_4_forces_friction"
path = "chp_02_forces/2_4_forces_friction.rs"
[[example]]
name = "2_4_forces_no_friction"
path = "chp_02_forces/2_4_forces_no_friction.rs"
[[example]]
name = "2_5_fluid_resistance"
path = "chp_02_forces/2_5_fluid_resistance.rs"
[[example]]
name = "2_6_attraction"
path = "chp_02_forces/2_6_attraction.rs"
[[example]]
name = "2_7_attraction_many"
path = "chp_02_forces/2_7_attraction_many.rs"
[[example]]
name = "2_8_mutual_attraction"
path = "chp_02_forces/2_8_mutual_attraction.rs"
[[example]]
name = "2_10_exercise_attract_repel"
path = "chp_02_forces/2_10_exercise_attract_repel.rs"
[[example]]
name = "2_forces_many_mutual_boundaries"
path = "chp_02_forces/2_forces_many_mutual_boundaries.rs"
# Chapter 3 Oscillation
[[example]]
name = "3_01_angular_motion"
path = "chp_03_oscillation/3_01_angular_motion.rs"
[[example]]
name = "3_02_forces_angular_motion"
path = "chp_03_oscillation/3_02_forces_angular_motion.rs"
[[example]]
name = "3_04_polar_to_cartesian"
path = "chp_03_oscillation/3_04_polar_to_cartesian.rs"
[[example]]
name = "3_04_polar_to_cartesian_trail"
path = "chp_03_oscillation/3_04_polar_to_cartesian_trail.rs"
[[example]]
name = "3_04_exercise_spiral"
path = "chp_03_oscillation/3_04_exercise_spiral.rs"
[[example]]
name = "3_05_simple_harmonic_motion"
path = "chp_03_oscillation/3_05_simple_harmonic_motion.rs"
[[example]]
name = "3_06_simple_harmonic_motion"
path = "chp_03_oscillation/3_06_simple_harmonic_motion.rs"
[[example]]
name = "3_07_oscillating_objects"
path = "chp_03_oscillation/3_07_oscillating_objects.rs"
[[example]]
name = "3_08_static_wave_lines"
path = "chp_03_oscillation/3_08_static_wave_lines.rs"
[[example]]
name = "3_09_exercise_additive_wave"
path = "chp_03_oscillation/3_09_exercise_additive_wave.rs"
[[example]]
name = "3_09_wave_a"
path = "chp_03_oscillation/3_09_wave_a.rs"
[[example]]
name = "3_09_wave_b"
path = "chp_03_oscillation/3_09_wave_b.rs"
[[example]]
name = "3_09_wave_c"
path = "chp_03_oscillation/3_09_wave_c.rs"
[[example]]
name = "3_09_wave"
path = "chp_03_oscillation/3_09_wave.rs"
[[example]]
name = "3_10_pendulum_example_simplified"
path = "chp_03_oscillation/3_10_pendulum_example_simplified.rs"
[[example]]
name = "3_10_pendulum_example"
path = "chp_03_oscillation/3_10_pendulum_example.rs"
[[example]]
name = "3_11_spring"
path = "chp_03_oscillation/3_11_spring.rs"
[[example]]
name = "3_10_exercise_oop_wave"
path = "chp_03_oscillation/3_10_exercise_oop_wave.rs"
[[example]]
name = "3_11_exercise_additive_wave"
path = "chp_03_oscillation/3_11_exercise_additive_wave.rs"
[[example]]
name = "3_16_exercise_springs"
path = "chp_03_oscillation/3_16_exercise_springs.rs"
[[example]]
name = "3_16_exercise_springs_array"
path = "chp_03_oscillation/3_16_exercise_springs_array.rs"
[[example]]
name = "3_exercise_spring_sine"
path = "chp_03_oscillation/3_exercise_spring_sine.rs"
[[example]]
name = "3_extra_oscillating_body"
path = "chp_03_oscillation/3_extra_oscillating_body.rs"
[[example]]
name = "3_extra_oscillating_up_and_down"
path = "chp_03_oscillation/3_extra_oscillating_up_and_down.rs"
[[example]]
name = "3_multiple_oscillations"
path = "chp_03_oscillation/3_multiple_oscillations.rs"
[[example]]
name = "3_oop_wave_particles"
path = "chp_03_oscillation/3_oop_wave_particles.rs"
# Chapter 4 Systems
[[example]]
name = "4_01_single_particle"
path = "chp_04_systems/4_01_single_particle.rs"
[[example]]
name = "4_01_single_particle_trail"
path = "chp_04_systems/4_01_single_particle_trail.rs"
[[example]]
name = "4_02_vector_particle"
path = "chp_04_systems/4_02_vector_particle.rs"
[[example]]
name = "4_03_particle_system_type"
path = "chp_04_systems/4_03_particle_system_type.rs"
[[example]]
name = "4_04_system_of_systems"
path = "chp_04_systems/4_04_system_of_systems.rs"
[[example]]
name = "4_05_particle_system_inheritance_polymorphism"
path = "chp_04_systems/4_05_particle_system_inheritance_polymorphism.rs"
[[example]]
name = "4_06_particle_system_forces"
path = "chp_04_systems/4_06_particle_system_forces.rs"
[[example]]
name = "4_07_particle_system_forces_repeller"
path = "chp_04_systems/4_07_particle_system_forces_repeller.rs"
[[example]]
name = "4_03_exercise_moving_particle_system"
path = "chp_04_systems/4_03_exercise_moving_particle_system.rs"
[[example]]
name = "4_06_exercise_shatter"
path = "chp_04_systems/4_06_exercise_shatter.rs"
[[example]]
name = "4_10_exercise_particle_intersection"
path = "chp_04_systems/4_10_exercise_particle_intersection.rs"
[[example]]
name = "4_10_exercise_particle_repel"
path = "chp_04_systems/4_10_exercise_particle_repel.rs"
# Chapter 6 Agents
[[example]]
name = "6_01_seek"
path = "chp_06_agents/6_01_seek.rs"
[[example]]
name = "6_01_seek_trail"
path = "chp_06_agents/6_01_seek_trail.rs"
[[example]]
name = "6_02_arrive"
path = "chp_06_agents/6_02_arrive.rs"
[[example]]
name = "6_03_stay_within_walls"
path = "chp_06_agents/6_03_stay_within_walls.rs"
[[example]]
name = "6_03_stay_within_walls_trail"
path = "chp_06_agents/6_03_stay_within_walls_trail.rs"
# Chapter 7 Cellular Automata
[[example]]
name = "7_01_wolfram_ca_figures"
path = "chp_07_cellular_automata/7_01_wolfram_ca_figures.rs"
[[example]]
name = "7_01_wolfram_ca_simple"
path = "chp_07_cellular_automata/7_01_wolfram_ca_simple.rs"
[[example]]
name = "7_02_game_of_life_simple"
path = "chp_07_cellular_automata/7_02_game_of_life_simple.rs"
[[example]]
name = "7_03_game_of_life_oop"
path = "chp_07_cellular_automata/7_03_game_of_life_oop.rs"
[[example]]
name = "7_04_exercise_wolfram_ca_scrolling"
path = "chp_07_cellular_automata/7_04_exercise_wolfram_ca_scrolling.rs"
[[example]]
name = "7_game_of_life_wrap_around"
path = "chp_07_cellular_automata/7_game_of_life_wrap_around.rs"
[[example]]
name = "7_hexagon_cells"
path = "chp_07_cellular_automata/7_hexagon_cells.rs"
# Chapter 8 Fractals
[[example]]
name = "8_1_recursion"
path = "chp_08_fractals/8_1_recursion.rs"
[[example]]
name = "8_2_recursion"
path = "chp_08_fractals/8_2_recursion.rs"
[[example]]
name = "8_3_recursion"
path = "chp_08_fractals/8_3_recursion.rs"
[[example]]
name = "8_4_cantor_set"
path = "chp_08_fractals/8_4_cantor_set.rs"
[[example]]
name = "8_4_tree"
path = "chp_08_fractals/8_4_tree.rs"
# Chapter 9 Genetic Algorithms
[[example]]
name = "9_1_ga_shakespeare"
path = "chp_09_genetic_algorithms/9_1_ga_shakespeare.rs"
# Chapter 10 Neural Networks
[[example]]
name = "10_01_simple_perceptron"
path = "chp_10_neural_networks/10_01_simple_perceptron.rs"
[[example]]
name = "10_02_seeking_neural"
path = "chp_10_neural_networks/10_02_seeking_neural.rs"
[[example]]
name = "10_03_network_viz"
path = "chp_10_neural_networks/10_03_network_viz.rs"