Skip to content

Instantly share code, notes, and snippets.

@renaehodgkins
Created August 3, 2012 14:42
Show Gist options
  • Save renaehodgkins/3248229 to your computer and use it in GitHub Desktop.
Save renaehodgkins/3248229 to your computer and use it in GitHub Desktop.
var paper = Raphael(10, 50, 320, 200); // this line of code will generate a canvas at position x: 10, y: 50 with width 320, height 200
var paper = Raphael(element, 200, 100); // this will create canvas inside the html element
var paper = Raphael('container', 200, 100); // suppose you have a html element with id 'container'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment