node package manager
Stop wasting time. Easily manage code sharing in your team. Create a free org »

twojs-browserify

Two.js Browserify

A browserified two-dimensional drawing api meant for modern browsers.

This is a browserified package for Two.js .

Usage

npm install --save twojs-browserify
Two = require 'twojs-browserify'
elem = document.querySelector '#container'
 
params = width: 200height: 100
two = new Two(params).appendTo elem
 
circle = two.makeCircle 727010
circle.fill = '#fff800'
circle.stroke = 'organered'
circle.linewidth = 5
 
two.update()

Change Log

  • 0.2.0, wrap Two.js 0.2.0 into a NPM package

License

MIT

For Two.js , see offical repo: