Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The HTML5 <canvas> tag is used to draw graphics, on the fly, via scripting (usually JavaScript). However, the <canvas> element has no drawing abilities of its own (it is only a container for graphics) - you must use a script to actually draw the graphics. The getContext() method returns an object that provides methods and properties for drawing on the canvas.  

Excerpt

arc( x, y, radius, sAngle=0, eAngle=0) enables you to draw circle easily.

...