canvas = {
var c;
if (this) {
c = this.getContext('2d');
} else {
c = DOM.context2d(size, size);
c.fillStyle = "blue";
c.canvas.onmousemove = (e) => {
mutable mousePos = {x: e.offsetX, y: e.offsetY};
}
}
c.clearRect(0, 0, size, size);
c.beginPath();
c.arc(mousePos.x, mousePos.y, 10, 0, 2 * Math.PI);
c.fill();
return c.canvas;
}