r/programming • • Oct 09 '10

Raphaël—JavaScript Library for making Vector graphics on the web easy

http://raphaeljs.com/index.html
131 Upvotes

28 comments sorted by

View all comments

0

u/kostmo Oct 09 '10

I'd like to see a summary of what this offers beyond HTML5 Canvas.

4

u/cesutherland Oct 09 '10

It's an SVG library, so it comes with the trade-offs of SVG vs. Canvas.

Additionally, Canvas and SVG are both pretty low level. Raphael offers documented and organized collection of routines for manipulating an SVG canvas., adding a layer of abstraction which serves as a toolkit for a programmer or designer.

3

u/sazzer Oct 09 '10

Plus the thing that I really like is that it lets you do 2D graphics calls - draw a circle here, an image there, etc - and then add events to them jQuery style. Can draw a circle to the screen and then make it so that when you click on it it fires a piece of javascript in the page.

2

u/[deleted] Oct 09 '10

This is one simple answer. It uses SVG aswell as Microsofts format VML (wich was rarely used but actually is supported by IE6). Thus you can archive Html5 effects even on IE6+ browsers and older versions of other browsers.