The document discusses Raphaël, an open source JavaScript library for working with vector graphics on the web. It provides a method for drawing and animating SVG and VML shapes using JavaScript. The API allows creating common shapes like circles, rectangles, paths, etc. and setting attributes like fill color, stroke, transformations. It also supports animation of shapes over time. Overall it provides a simple and lightweight way to work with vector graphics across browsers using a consistent JavaScript API.
40. var circle = paper.circle(cx, cy, r);
var rect = paper.rect(x, y, width, height, r);
var ellipse = paper.ellipse(cx, cy, rx, ry);
var image = paper.image(src, x, y, width, height);
var text = paper.text(x, y, text);
Monday, November 29, 2010