Image Array
To make this sketch work the 12 image files below need to be inside the sketch directory.
Image file names are stored in the 'imageName' variable.
nf(i,4) returns i as 4 digits.
i = 1 returns 0001, i = 12 returns 0012 etc.
imageName is made by concatenating frame + i + .png.
The images are stored in an array called 'images'.
images.length returns the length of the array. You could use the number 12. Look carefully and you will note that currentFrame counts from 0 to 11 and then resets to 0.
Challenge 53
Make your own 12 frame animation.