Javascript Canvas Library, SVG-to-Canvas (& canvas-to-SVG) Parser
Find a file
2010-06-11 01:58:52 -04:00
dist Add build files, both — just concatened and minified with YUIC 2010-06-11 01:32:18 -04:00
lib Add a couple more dependencies to /lib. Remove unneeded code from 2D.js and unminify it. 2010-06-09 23:30:25 -04:00
src Small tweaks: normalize whitespace and brackets, make initialization of "classes" consistent. 2010-06-10 13:57:59 -04:00
test Split 2D.js into canvas_point.class.js and canvas_intersection.class.js 2010-06-10 11:37:51 -04:00
README.md FabricJS -> Fabric.js 2010-06-11 01:58:52 -04:00

What is it?

Fabric.js is a framework that makes it easy to work with HTML5 canvas element. It is an interactive object model on top of canvas element. It is also an SVG-to-canvas parser.

What are the features?

  • Unit tested
  • Modular
  • Cross-browser
  • Fast

How do I use it?

Adding red rectangle to canvas

<canvas id="canvas" width="300" height="300"></canvas>  
...

var canvas = new Canvas.Element('canvas');

var rect = new Canvas.Rect({
  top: 100,
  left: 100,
  width: 60,
  height: 70,
  fill: 'red'
});

canvas.add(rect);

Credits