threecn

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.

Fullscreen

Customize

Agents170
Speed1
Environment

Props

countnumber

Number of agents in the flock.

Default170
speednumber

Flight speed multiplier.

Default1
classNamestring

Classes for the wrapper element (set its height here).

Default
theme"auto" | "light" | "dark"

Color source. auto reads the live shadcn theme.

Default"auto"

On this page

No Headings
Sponsor

Become a sponsor

threecn is free and open source. Sponsor the project to keep new scenes shipping and get your logo in front of the community.

Become a sponsor

Opens an email to leonelngoya@gmail.com