Boids
A living flock steering by separation, alignment and cohesion; each agent tints --accent when slow to --primary at full speed.
A living flock of hundreds of instanced agents, each steering by Craig Reynolds's three rules — separation, alignment and cohesion — with a soft pull back toward the center. Boids tint from --accent when slow to --primary at full speed. One draw call.
Customize
Agents170
Speed1
Environment
Props
| Prop | Type | Default | Description |
|---|---|---|---|
count | number | 170 | Number of agents in the flock. |
speed | number | 1 | Flight speed multiplier. |
className | string | — | Classes for the wrapper element (set its height here). |
theme | "auto" | "light" | "dark" | "auto" | Color source. auto reads the live shadcn theme. |
countnumberNumber of agents in the flock.
Default
170speednumberFlight speed multiplier.
Default
1classNamestringClasses for the wrapper element (set its height here).
Default
—theme"auto" | "light" | "dark"Color source. auto reads the live shadcn theme.
Default
"auto"