Draw Manually
With the draw()
method, you can draw on the canvas using native canvas methods (or any method, for that matter). To do this, write your code inside a function
Draw Anything
The draw()
method can be used to draw any other jCanvas drawing (although usually this is not necessary).
The above code is equivalent to the following:
Notes
The this
keyword in the callback function refers to the canvas DOM element.