https://github.com/kchapelier/cellular-automata-gpu
GPU-based cellular automata runner
https://github.com/kchapelier/cellular-automata-gpu
Last synced: about 2 months ago
JSON representation
GPU-based cellular automata runner
- Host: GitHub
- URL: https://github.com/kchapelier/cellular-automata-gpu
- Owner: kchapelier
- License: mit
- Created: 2016-01-30T17:59:30.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-04-27T15:10:21.000Z (over 6 years ago)
- Last Synced: 2025-01-03T05:05:07.315Z (9 months ago)
- Language: JavaScript
- Size: 28.3 KB
- Stars: 11
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cellular-automata-gpu
## Installing and testing
With [npm](http://npmjs.org) do:
```
npm install cellular-automata-gpu
```## Features
- Doesn't have any dependency to the DOM (use OffscreenCanvas in worker if available).
- Can easily apply different successive rules.
- Can be used in 2D and 3D.
- Allow the cellular automata rules to be passed as a string in one of several common CA rule format, see [cellular-automata-rule-parser](https://www.npmjs.com/package/cellular-automata-rule-parser).## Warning
It is currently recommended to use the CPU-based module [cellular-automata](https://www.npmjs.com/package/cellular-automata) instead as it is more battle-tested, more documented and not subject to GPU drivers bugs, albeit much slower.
## Changelog
### 0.1.0 (2019-04-27) :
- Now use a WebGL2 backend
- Does not work in node.js anymore (no stable headless WebGL2 implementation as of yet)
- More consistent behavior on different GPUs
- Update dependencies, remove dependency to `uniq` and `gl`
- Smaller npm package### 0.0.2 (2017-01-13) :
- Fix incorrect shader generation for stochastic rule in 3D
- Fix issue with empty birth or survival value in stochastic rules### 0.0.1 (2016-12-17) :
- First publication on npm.
## License
MIT