A node.js and client-side library for (quadratic and cubic) Bezier curve work.
For a Demo and the API, hit up either pomax.github.io/bezierjs
or read the souce (./lib
for the library code, start at index.js
).
npm install bezier-js
will add bezier.js to your dependencies, remember to add --save
or --save-dev
if you need that to be persistent of course.
var Bezier = require('bezier-js')
and off you go.
Load the toplevel bezier.js
the same way you would any other browser script, using a <script src="..."></script>
declaration.
To test new code, use npm test
.
To build the library, use npm run build
.
This code is MIT licensed.
For comments and questions, tweet at me or file an issue.