Skip to content

git-ashish/bezierjs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bezier.js

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).

Installation

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.

Use

var Bezier = require('bezier-js') and off you go.

Use in the browser

Load the toplevel bezier.js the same way you would any other browser script, using a <script src="..."></script> declaration.

Working on the code

To rebuild, simply use npm test, which runs both the build and tests (which aren't very test-like atm, they just allow you to valid two curves. More to come). For comments and questions, tweet at me or file an issue.

This code is MIT licensed.

About

A nodejs and client-side library for (cubic) Bezier curve work

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 65.6%
  • HTML 32.4%
  • CSS 2.0%