Created
October 1, 2011 09:49
-
-
Save shameerc/1255818 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// get the canvas from options passed to costructor | |
canvas = $(options.canvas)[0]; | |
// check if the browser supports canvas and | |
// get the contect | |
if(canvas.getContext('2d')){ | |
ctx = canvas.getContext('2d'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment