Permalink
Browse files

making the imageSequenceExample loop

  • Loading branch information...
1 parent 6a8ebce commit 25aa585955cddb583e5d52dd14d79fc1c29bcffe @kylemcdonald committed Apr 10, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 examples/graphics/imageSequenceExample/src/testApp.cpp
@@ -98,7 +98,8 @@ void testApp::draw() {
// draw where we are in the sequence
float x = 0;
- for(int i=frameIndex; i<MIN(images.size(), frameIndex+5); i++) {
+ for(int offset = 0; offset < 5; offset++) {
+ int i = (frameIndex + offset) % images.size();
ofSetColor(255);
images[i].draw(200+x, ofGetHeight()-40, 40, 40);
x += 40;

0 comments on commit 25aa585

Please sign in to comment.