twojs-browserify

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

npm install twojs-browserify
2 downloads in the last week
4 downloads in the last month

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: 200, height: 100
two = new Two(params).appendTo elem

circle = two.makeCircle 72, 70, 10
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:

npm loves you