Raphaël Live

Raphaël is a JavaScript Library for creating Vector Graphics (SVG) in the browser, created by Dmitry Baranovskiy.

This page is a tool for learning Raphael. Enter JavaScript code in the lower panel - Click 'Run Code' to see the result.

Raphaël and jQuery are already loaded. The Canvas is 600 x 400 pixels and is accessed via the variable 'paper'.

Live Examples

Click to load examples, modify them, run, repeat... learn!

  • Basic Shapes
  • Rectangles
  • Circles and Ellipses
  • Basic Styling
  • Colors
  • Lines
  • Curves - Cubic Bezier
  • Curves - Quadratic Bezier
  • Curves - Elliptical Arc
  • Sets
  • Text
  • Images
  • Interaction
  • Animation

Raphael Documentation and Advanced Demos

Here is a Larger Version of this page with more workspace but no examples.

Have at it!

       

This page was created by Robert Jones at Craic Computing and leverages jQuery and CodeMirror.

This code is freely distributed under the terms of the MIT license.

Download your own copy from GitHub or use it here.