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
Prop | Type | Description | Default |
---|---|---|---|
size | number | size of the pixel | 12 |
interval | number | Interval between frames in milliseconds | 150 |
backgroundColor | string | Background color of the canvas | "#000000" |
cellColor | string | Color of the cells | "#1e1e1e" |
density | number | Density of the cells (0 to 1) | 0.1 |
Examples
Loading...
Credits
- Credit to @Vercel for the inspiration.