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
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.