Retained mode vector drawing API designed for multiple output modes. There's also a built-in SVG parser.
JavaScript HTML Erlang CSS
#15 Compare This branch is 58 commits ahead, 3 commits behind kamicane:master.
Permalink
Failed to load latest commit information.
core Moving files from src to root to accommodate npm require paths Sep 11, 2013
demos Moving files from src to root to accommodate npm require paths Sep 11, 2013
docs Add index page, add docs page, config jekyll to ignore submodule noise Apr 28, 2014
dom Moving files from src to root to accommodate npm require paths Sep 11, 2013
lib Clean up Feb 5, 2013
metrics Moving files from src to root to accommodate npm require paths Sep 11, 2013
modes Use an existing check for canvas capabilities Jan 4, 2016
morph Upstream fixes, including stroke dash and IE9 workaround. Nov 6, 2014
parsers Moving files from src to root to accommodate npm require paths Sep 11, 2013
shapes Moving files from src to root to accommodate npm require paths Sep 11, 2013
tests Moving files from src to root to accommodate npm require paths Sep 11, 2013
.gitignore Add index page, add docs page, config jekyll to ignore submodule noise Apr 28, 2014
.gitmodules Don't use SSH for gitmodules say gh-pages May 7, 2013
.npmignore Moving files from src to root to accommodate npm require paths Sep 11, 2013
README.md Moving files from src to root to accommodate npm require paths Sep 11, 2013
_config.yml Change markdown engine to bypass maruku deprecation messages Apr 28, 2014
index.js Moving files from src to root to accommodate npm require paths Sep 11, 2013
index.md Add index page, add docs page, config jekyll to ignore submodule noise Apr 28, 2014
license.txt Refactor for v2, use CommonJS modules, merge with Path Morph and SVG … Feb 4, 2013
package.json Bump version for 0.10.1 release Jan 5, 2016

README.md

ART

ART is a retained mode vector drawing API designed for multiple output modes. There's also a built-in SVG parser. It uses Node style CommonJS modules.

The first line in your program should select rendering mode by requiring either:

  • art/modes/canvas - HTML5 Canvas
  • art/modes/svg - SVG for modern browsers and vector tools
  • art/modes/vml - VML for Internet Explorer or Office
  • art/modes/script - Code generation for ART modules
  • art/modes/dom - SVG or VML depending on environment
  • art/modes/fast - Canvas, SVG or VML depending on environment

These modules exposes four core rendering classes:

  • Surface - Required rectangular rendering area. Container for the rest.
  • Group - Container for Shapes, Text or other Groups.
  • Shape - Fill and/or stroke an arbitrary vector path.
  • Text - Fill and/or stroke text content rendered using native fonts.

There are also helper classes to work with vector paths, 3x3 transformation matrices, colors, morphing, common shapes etc.

Demos

See ./demos