Answers for "How to draw a picture using the HTML5 Canvas API"

-1

How to draw a picture using the HTML5 Canvas API

<script>
var c = document.getElementById("myCanvas");

 var ctx = c.getContext("2d");

 var img = document.getElementById("scream");

 ctx.drawImage(img, 10, 10);
</script>
Posted by: Guest on September-09-2021

Browse Popular Code Answers by Language