E
x
c
e
l
P
T
P

Can you give an example of Canvas element and how it can be used?

February 22, 2014

<canvas id=“myCanvas” width=“500″ height=“400″>

</canvas>

<script type=“text/javascript”>

var myCanvas=document.getElementById(“myCanvas”);

var myText=myCanvas.getContext(“2d”);

myText.fillStyle=“#82345c”;

myText.fillRect(0,0,150,75);

</script>