Crowd
Hundreds of tiny agents on one canvas. They wander, swarm your cursor, or spell a word.
3 modesup to 600 agentsone canvas, 60fpsdrag + throw
Play
Switch modes, change the crowd size, type a word for the formation.
Mode
Modes
- crowd
- They wander between little waypoints, stop to wave, and high-five when two meet. The cursor parts the crowd.
- swarm
- They flock across the floor after your cursor, keeping a little personal space.
- form
- They walk into position to spell
text. Click the floor to scatter them; they regroup.
Attributes
| Attribute | What it does | Default |
|---|---|---|
mode | crowd swarm form | crowd |
count | how many agents (up to 600) | 70 (form: 160) |
text | the word to spell in form mode | HELLO |
height | stage height in px (or size it with CSS) | 420 |
scale | size of one agent pixel | 3 |
Method: scatter() knocks everyone flying.