Skip to content
forked from kamicane/art

Retained mode vector drawing API designed for multiple output modes. There's also a built-in SVG parser.

License

Notifications You must be signed in to change notification settings

sebmarkbage/art

This branch is 63 commits ahead of, 3 commits behind kamicane/art:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

20b1462 · Jul 12, 2018
Sep 11, 2013
Sep 11, 2013
Apr 28, 2014
Sep 11, 2013
Feb 5, 2013
Sep 11, 2013
Jan 17, 2018
Nov 6, 2014
Jan 17, 2018
Sep 11, 2013
Sep 11, 2013
Apr 28, 2014
May 7, 2013
Jun 29, 2018
Sep 11, 2013
Apr 28, 2014
Sep 11, 2013
Apr 28, 2014
Feb 4, 2013
Jul 12, 2018

Repository files navigation

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

About

Retained mode vector drawing API designed for multiple output modes. There's also a built-in SVG parser.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 81.4%
  • HTML 17.8%
  • CSS 0.8%