Boids
A living murmuration of hundreds of flocking agents drawn as crisp arrows, streaks, dots or glowing comets — separation, alignment and cohesion drive fluid, splitting-and-merging ribbons, agents flash toward an excited color when scattered, and the cursor acts as an attractor or a predator
Props
Prop
Details
colorAstringDefault:
#8ec5ffColor of agents cruising calmly with the flock
colorAstringDefault: #8ec5ffColor of agents cruising calmly with the flock
colorBstringDefault:
#ff7ad9Color agents flash toward when agitated — scattering from the predator cursor or banking through a hard turn
colorBstringDefault: #ff7ad9Color agents flash toward when agitated — scattering from the predator cursor or banking through a hard turn
colorSpace"linear" | "oklch" | "oklab" | "hsl" | "hsv" | "lch"Default:
oklabColor space for the rest→excited color ramp
colorSpace"linear" | "oklch" | "oklab" | "hsl" | "hsv" | "lch"Default: oklabColor space for the rest→excited color ramp
agentShape"arrow" | "streak" | "dot" | "square" | "glow"Default:
arrowWhat each agent is drawn as — a hard-edged arrow, streak or square pointing along its heading, a plain dot, or a soft glowing comet
agentShape"arrow" | "streak" | "dot" | "square" | "glow"Default: arrowWhat each agent is drawn as — a hard-edged arrow, streak or square pointing along its heading, a plain dot, or a soft glowing comet
countnumberDefault:
2000Number of flocking agents
countnumberDefault: 2000Number of flocking agents
speednumberDefault:
2Overall cruising speed of the flock
speednumberDefault: 2Overall cruising speed of the flock
seednumberDefault:
0Re-rolls the flock's starting formation — each value spawns the murmuration in a different arrangement
seednumberDefault: 0Re-rolls the flock's starting formation — each value spawns the murmuration in a different arrangement
sizenumberDefault:
1.5Size of each agent
sizenumberDefault: 1.5Size of each agent
trailsnumberDefault:
0How long each agent's motion trail persists — 0 draws crisp agents, 1 leaves long ribbons
trailsnumberDefault: 0How long each agent's motion trail persists — 0 draws crisp agents, 1 leaves long ribbons
separationnumberDefault:
1.7How strongly agents steer away from crowding their neighbours
separationnumberDefault: 1.7How strongly agents steer away from crowding their neighbours
alignmentnumberDefault:
1.5How strongly agents match their neighbours' heading — the driver of coherent murmuration ribbons
alignmentnumberDefault: 1.5How strongly agents match their neighbours' heading — the driver of coherent murmuration ribbons
cohesionnumberDefault:
1How strongly agents steer toward the local center of the flock
cohesionnumberDefault: 1How strongly agents steer toward the local center of the flock
perceptionnumberDefault:
0.12How far each agent can sense its neighbours (in screen heights) — larger sees bigger, smoother flocks
perceptionnumberDefault: 0.12How far each agent can sense its neighbours (in screen heights) — larger sees bigger, smoother flocks
cursorMode"none" | "attract" | "repel"Default:
repelHow the flock reacts to the cursor
cursorMode"none" | "attract" | "repel"Default: repelHow the flock reacts to the cursor
cursorStrengthnumberDefault:
1.5Strength of the cursor's pull or push on the flock
cursorStrengthnumberDefault: 1.5Strength of the cursor's pull or push on the flock