The HTML
<canvas width="600" height="480" id="drawhere"></canvas>
Getting started
var myCanvas = document.getElementById("drawhere") ; var myContext = myCanvas.getContext("2d") ;
Useful references
- Canvas 2D Content API
- CSS Color Module Level 3
- Mozilla Development Network Canvas tutorial
- w3schools.com HTML5 Canvas
- w3schools.com HTML5 canvas.getContext("2d") reference