CanvasCellSim


Thumbnail (CanvasCellSim)
Name:
Language:
Typescript
License:
Category:
Simulation
Date:
2020-12-21

CanvasCellSim

Simulate a cellular automata and render it onto a canvas.

Contains a bunch of example configurations in ccs_examples.ts but can be freely configured with a custom transitioning function.

See the the github page for examples

Included Examples:

  • Game of Life
  • Game of Life (with decay)
  • Forest Fire
  • Spiders and Mosquitoes
  • Cyclic
  • Pobalistic Cyclic
  • Caves
  • Mazes1
  • Mazes2
  • Seed
  • Seed (with decay)
  • Generic Lifelike (configure via RuleString or RuleInteger)

Support for

  • resizing canvas
  • wrapping or clamping edges
  • Moore or Neumann neigbourhoods (or custom transitioning)
  • performant drawing (cache colors and only render changes)

made with vanilla PHP and MySQL, no frameworks, no bootstrap, no unnecessary* javascript