Sequential Loop with Images

Whoops!

image( imgs[frameCount]%36, width/2, height/2);

Should be

image( imgs[frameCount%36], width/2, height/2);

If you search for what the modulo (%) operator does, you will see why it goes on the index into the array and not on the image…

1 Like