I figured we need to take at least a couple days or more to talk about images and JavaScript and Canvas. It’s a pretty useful subject.
So far, we’ve been drawing everything with lines and arcs. Maybe a rect here or there. But canvas can also draw bitmap images. There are a few different ways to get bitmap images. The most obvious is through an image tag on the html page. Say we have a setup like this:
[php lang=“HTML”]