Loading...
Installation
pnpm dlx @bucharitesh/cli@latest add 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.