An open API service indexing awesome lists of open source software.

https://github.com/fildon/boid-flock


https://github.com/fildon/boid-flock

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

          

# Boid Flock

A React component to render a boids simulation anywhere

![Demo gif](https://raw.githubusercontent.com/fildon/boid-flock/main/static/boid-flock.gif)

## Installation

```shell
npm add 'boid-flock'
```

## Usage

```ts
import { BoidFlock } from "boid-flock";

export function YourComponent() {
return (

You can render whatever you like in here

);
}
```

Optionally you can pass a `boidCount` prop to the component to control the number of boids rendered.

```ts
import { BoidFlock } from "boid-flock";

export function YourComponent() {
return (

There's only 3 boids in my background



);
}
```