A browserified two-dimensional drawing api meant for modern browsers.
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.md
events.js
package.json
requestAnimationFrame.js
two.clean.js

README.md

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: