0.1.0 • Published 11 years ago

bezier v0.1.0

Weekly downloads
3,493
License
-
Repository
github
Last release
11 years ago

bezier experimental

n-degree Bezier spline interpolation.

Usage

bezier

curve = require('bezier')(pointCount)

Generates a function which takes pointCount number of points to draw a bezier curve.

curve(points, t)

Given an array of points that is pointCount long, return the value across the curve at t.

License

MIT. See LICENSE.md for details.