動画検索
関連広告
検索結果
Introduction and references
About cellular automata
The rules for a sand simulation
Code! Creating a grid
Animating a falling grain of sand
About matrix columns and rows
Let's account for the bottom edge
Adding mouse interaction
More sophisticated sand behavior
Oops! Some errors to fix
Adding randomness
Handling left and right edges
Checking if mouse is within the canvas
Making it more efficient
More space and more sand
Adding some color!
Challenge complete! Let's do some refactoring
How could we add gravity?
Wrapping up