---
title: Boids
description: 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
category: Interactive
componentType: Generator
requiresChild: false
sourceUrl: https://github.com/shader-effects-inc/shaders/blob/main/packages/core/src/shaders/Boids/index.ts
---

# 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

## Usage

```vue-html
<Shader>
  <Boids />
</Shader>
```

```jsx
<Shader>
  <Boids />
</Shader>
```

```svelte
<Shader>
  <Boids />
</Shader>
```

```tsx
<Shader>
  <Boids />
</Shader>
```

```javascript
import { createShader } from 'shaders/js'

const shader = await createShader(canvas, {
  components: [
    { type: 'Boids', props: {} }
  ]
})
```