Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sjml/metal-life
Conway's Game of Life implemented in Metal and Swift
https://github.com/sjml/metal-life
Last synced: about 2 months ago
JSON representation
Conway's Game of Life implemented in Metal and Swift
- Host: GitHub
- URL: https://github.com/sjml/metal-life
- Owner: sjml
- License: mit
- Created: 2017-05-17T06:32:33.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-28T17:41:20.000Z (about 7 years ago)
- Last Synced: 2024-04-15T02:12:33.698Z (9 months ago)
- Language: Swift
- Size: 87.1 MB
- Stars: 13
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Metal Life
[Conway's Game of Life](https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life) (a.k.a. the "Hello World" of programmable graphics), implemented in [Metal](https://developer.apple.com/metal/) Shaders.
(Originally the CPU was doing nothing at all, just telling the GPU when to reset its buffers. Then I got greedy and wanted to be able to change the colors and point size without restarting, which meant the CPU had to get more involved to coordinate the UI with the shaders. Less pure, but more fun to play with. Mission of learning about Metal, Swift, and brushing up on Cocoa UI setups: accomplished.)
Now there's a screensaver, too! :D
## The program in action
![life at work](screenshots/example.gif)## With controls!
![shrunk but high framerate of the controls](screenshots/controls-480-high.gif)