Skip to content

Latest commit

 

History

History
46 lines (28 loc) · 2 KB

README.md

File metadata and controls

46 lines (28 loc) · 2 KB

Conway's Snowflake

Build Status

Live Demo

Check out the live demo. Refresh the page to generate a new world.

About

Generates symmetrical Conway's Game of Life universes with torus typologies.

Made using Rust 🦀 and WebAssembly 🕸 and modified to optimize rendering performance.

Symmetry

Universes are horizontally and vertically symmetrical throughout the simulation.

Rendering

The largest optimization was to render using WebAssembly.

Each cell is represented as a single pixel. Black is an alive cell and white is a dead cell.

The universe is rendered it into an Uint8ClampedArray and interpreted as ImageData. This ImageData is then displayed onto a canvas using putImageData().

Build

Requirements

Steps

  • Run wasm-pack build inside project dictionary
  • Run npm install inside www folder
  • Finally run npm run start inside www and visit http://localhost:8080 to see the results

License

Licensed under either of these: