Game of Life

February 2025

Loading...

A customizable implementation of Conway's Game of Life with interactive cells, adjustable parameters, and smooth animations. Features configurable cell colors, grid size, and simulation speed for creating mesmerizing cellular automaton patterns.

Installation

npx shadcn@latest add "https://bucharitesh.in/r/game-of-life"

Props

PropTypeDescriptionDefault
sizenumbersize of the pixel12
intervalnumberInterval between frames in milliseconds150
backgroundColorstringBackground color of the canvas"#000000"
cellColorstringColor of the cells"#1e1e1e"
densitynumberDensity of the cells (0 to 1)0.1

Examples

Loading...

Credits

  • Credit to @Vercel for the inspiration.