I am trying to get a very basic example running that has a circle drawn inside a <canvas> within HtmlDrawable.
I was able to get a basic example of circle in canvas running without HtmlDrawable (i.e. it wasn't tracked). But I need it tracked. So I am trying HtmlDrawable. But just hitting a wall.
If I use the 'html' property insead of uri, I can't even get access to my canvas. I tried like this:
var canvas = document.getElementById('myCanvas');
It returns null.
So, Instead I tried the uri method, and created a different html file that has the following contents:
<script> var canvas = document.getElementById('myCanvas'); var context = canvas.getContext('2d'); var centerX = canvas.width / 2; var centerY = canvas.height / 2; var radius = 700;
Shobhit Gupta
1 person has this problem