static void

Canvas

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");
Canvas not supported