Sequential Loop with Images

Thank you very much for the quick reply!

I received the following error; "The operator % is undefined for the argument type(s) PImage, int"

PImage[] imgs = new PImage [36];

void setup(){
size(400,400);
for( int i = 1; i <= 36; i++){
String tens = “”;
if( i < 10 ) tens = “0”;
imgs[i-1] = loadImage( “Orb” + tens + i + “.png” );
}
}

void draw(){
background(0);
imageMode(CENTER);
image( imgs[frameCount]%36, width/2, height/2);
}

1 Like