Craft
Game of Life

Game of Life

Game of Life

Loading...

The Icon component creates customizable, interactive pixel-based icons. It supports hover effects, color changes, and pixel shape customization.

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.