Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/strandedkitty/sandpile
WebGL sandpile
https://github.com/strandedkitty/sandpile
celluar-automatons sandpile sandpiles
Last synced: 3 days ago
JSON representation
WebGL sandpile
- Host: GitHub
- URL: https://github.com/strandedkitty/sandpile
- Owner: StrandedKitty
- Created: 2019-03-13T11:18:28.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-16T12:35:29.000Z (over 4 years ago)
- Last Synced: 2024-12-25T19:29:06.329Z (8 days ago)
- Topics: celluar-automatons, sandpile, sandpiles
- Language: JavaScript
- Homepage:
- Size: 28.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sandpile
Abelian sandpile model implementation made with WebGL. It does all calculations on GPU using ping-pong technique so they are done fairly fast. Size of the grid is 512×512 but the x=0 and y=0 rows are never used, so the actual size is 511×511. The central cell has an infinite amount of grains so simulation can run forever.[Live demo](https://vhawk.github.io/sandpile). Use mouse wheel to zoom and space button to pause.
## Color pattern
| Number of grains | Color |
| --- | --- |
| 0 | White |
| 1 | Red |
| 2 | Orange |
| 3 | Cyan |
| More than 3 | Green |