Controls :
- Left-click - create a ground block.
- Right-click - create a water block.
- Shift + Left-click and Shift + Right-click - delete a block.
- R - randomize the map.
- C - clear the map.
- S - toggle step-by-step simulation.
- Space - advance simulation (when in step-by-step mode)
- N - show/hide the amount of water in each cell.
- D - switch between basic and depth-based rendering (default).
(You may need to click the applet a few times to give it keyboard focus.)
Source code: water_sim SimCompression
Built with Processing