From a11f698fb1d318a6e52dbd04331f0ed4879fbb42 Mon Sep 17 00:00:00 2001 From: Karan <50290386+Sonawane-Karan26@users.noreply.github.com> Date: Mon, 3 Jan 2022 17:27:58 +0530 Subject: [PATCH] commented regarding adding image to canvas --- Chapter 14/Code Samples/ch14-drawing-image.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Chapter 14/Code Samples/ch14-drawing-image.html b/Chapter 14/Code Samples/ch14-drawing-image.html index 0c49e2f..58b9257 100755 --- a/Chapter 14/Code Samples/ch14-drawing-image.html +++ b/Chapter 14/Code Samples/ch14-drawing-image.html @@ -15,7 +15,7 @@ canvas.height = 300; canvas.width = 300; let ctx = canvas.getContext("2d"); - let myImage = document.getElementById("flower"); + let myImage = document.getElementById("flower"); //This line adds the image on the canvas, you can hide the tag by " style="display: none;" " ctx.drawImage(myImage, 10, 10); };