Skip to content

asafigan/conways-snowflake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

About

Symmetrical Conway's Game of Life Universes

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE_APACHE
MIT
LICENSE_MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •