From the course: Learning HTML Canvas

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Building an image slideshow

Building an image slideshow

From the course: Learning HTML Canvas

Start my 1-month free trial

Building an image slideshow

- [Lecturer] Alright, we've reached the point in the course where we can use what we've learned about the canvas, to start building some real, live useful stuff. One of the first things that we're going to build is an image slide show. So first we'll take a look at what the slideshow looks like when it is finished. So, I'm going to go out to my folder and in my examples folder under slideshow, I'm going to open up slideshow finished in the browser, and this is a fairly typical rotating image slideshow. So you can see that the image changes every few seconds. And there's four individual images and when we reach the last one, after a few seconds, it goes back to the first. Alright, so let's see how to go and build this. Alright, here in VS code, I'm going to open up the slideshow start file and I've already got some code in place, here in the file. So here at the top of the code, I've got some variables that are going to control how the slideshow works. So this array has all the images…

Contents