@mapbox/unitbezier
unit bezier curve interpolation
Last updated 4 years ago by mapbox-npm .
BSD-2-Clause · Repository · Bugs · Original npm
$ cnpm install @mapbox/unitbezier 
SYNC missed versions from official npm registry.

Build Status

unitbezier

Unit bezier interpolation function: a port to JavaScript from Webkit:

http://svn.webkit.org/repository/webkit/trunk/Source/WebCore/platform/graphics/UnitBezier.h

api

new UnitBezier(p1x, p1y, p2x, p2y)

Initialize a new bezier curve given the points

bezier.solve(x, epsilon)

Evaluate bezier for value x (ranging from 0 to 1) with epsilon precision (1e-6 by default).

Current Tags

  • 0.0.1                                ...           latest (4 years ago)

2 Versions

  • 0.0.1                                ...           4 years ago
  • 0.0.0                                ...           9 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (3)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org