# bezier-curve

> Bezier curve interpolation

Latest version **1.0.0** (published 2015-03-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install bezier-curve
pnpm add bezier-curve
yarn add bezier-curve
bun add bezier-curve
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2015-03-21 |
| First published | 2015-03-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 13 |
| Author | thibauts |
| Maintainers | thibauts |
| Keywords | bezier, curve, interpolation |

## Links

- npm: https://www.npmjs.com/package/bezier-curve
- Repository: https://github.com/thibauts/bezier-curve
- Issues: https://github.com/thibauts/bezier-curve/issues
- npm.io page: https://npm.io/package/bezier-curve

## Recent versions

- 1.0.0 (latest) — 2015-03-21

## README

bezier-curve
============
### Bezier curve interpolation

Bezier curve interpolation of any order of control points of any dimensionality. Uses the [De Casteljau](http://en.wikipedia.org/wiki/De_Casteljau%27s_algorithm) algorithm. Though this module may be useful for educational purposes, for a faster alternative check [this](https://github.com/hughsk/bezier).

Install
-------

```bash
$ npm install bezier-curve
```

Usage
-----

```javascript
var bezier = require('bezier-curve');

var points = [
  [-1.0,  0.0],
  [-0.5,  0.5],
  [ 0.5, -0.5],
  [ 1.0,  0.0]
];

for(var t=0; t<1; t+=0.01) {
  var point = bezier(t, points);
}
```

<img src="http://i.imgur.com/UmYTuIE.png" />

---
_Source: https://npm.io/package/bezier-curve · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
