I was going over a tutorial on html5 canvas. One of the sections is teaching you how to draw canvas based on an image. While everything works out fine, I am puzzled about why using canvas over simply loading the image using <img>.
I was going over a tutorial on html5 canvas . One of the sections
Share
Games which use sprites,
3D games with textured-polygons,
Image-editing functionality,
Cropping and scaling in real-time,
Image-filters in real-time…
If you’re just using canvas to load an image, that’s going to be a lot of work for absolutely no payoff, because you actually have to LOAD an image into an
imgelement, or anImage()object, before you can even use it on the canvas.