Jason McGhee has written a two-part series explaining how to implement a falling sand simulator in JavaScript.
- Genesis 1:2 (Wikipedia)
Genesis 1:2 is the second verse of the Genesis creation narrative. It is a part of the Torah portion Bereshit (Genesis 1:1–6:8).
- The code can be found by viewing source (the author mentions he left the source non-minified for easy review).