Détail du package

bezier

hughsk9.3kMIT0.1.0

n-degree Bezier interpolation

bezier, curve, spline

readme

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.