What is Canvas?
The
HTML5 canvas element uses JavaScript to draw graphics on a web page.
A
canvas is a rectangular area, and you control every pixel of it.
The
canvas element has several methods for drawing paths, boxes, circles,
characters, and adding images.
Create a Canvas Element
Add
a canvas element to the HTML5 page.
Specify
the id, width, and height of the element:
<canvas
id="myCanvas" width="200"
height="100"></canvas>
|
0 comments:
Post a Comment