Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)