Canvas
- FF, Chrome, Safari, IE 9+
- MDN
Drawing context
You need to get a "2D" drawing context.
NB: <canvas id="myCanvas" > is NOT self-closing.
var context = document.getElementById("myCanvas").getContext("2d");
You need to get a "2D" drawing context.
NB: <canvas id="myCanvas" > is NOT self-closing.
var context = document.getElementById("myCanvas").getContext("2d");