Filter (Advanced Search)
Downloads
0
Views
225
Video

Video is not available... Embedded is previous playlist.

Details

After creating the rectangular canvas area, you must add a JavaScript to do the drawing.

Here are some examples:


<!DOCTYPE html>
<html>
<body>

<canvas id="myCanvas" width="200" height="100" style="border:1px solid #d3d3d3;">
Your browser does not support the HTML canvas tag.</canvas>

<script>
var c = document.getElementById("myCanvas");
var ctx = c.getContext("2d");
ctx.moveTo(0,0);
ctx.lineTo(200,100);
ctx.stroke();
</script>

</body>
</html>



Ad