Sand
2015-10-04, post № 70
programming, Pygame, Python, #art, #background, #bridges, #falling, #grain, #grains, #sand, #shades
This program lets you watch grains of sand fall. The grains shift in color, according to the color algorithm assigned. You also can build bridges to change the sand’s falling behavior.
Controls
- Left clicking spawns in new grains of sand,
- Right clicking draws a bridge,
- ‘Space’ saves a screenshot.
Source code: sand.py
Extra assets: sand-0.png, sand-1.png, sand-2.png, sand-3.png, sand-5.png, sand-6.png, sand-8.png, sand-9.png