How to adjust code so line of gifs come in one column after another?
in
Contributed Library Questions
•
6 months ago
Hi,
I am trying to make it so the vertical line of gifs will appear one column after another next to each other, so far I have put together a code that displays all the gifs, but all of them appear at once. Ideally this is what I have just now, but i am hoping to find a way to make it so each vertical line appears consecutively one after another till the whole screen is like this:
At the moment, my code works by displaying all the columns all at once as such...
This is from my current code:
import gifAnimation.*;
PImage[] animation;
Gif loopingGif;
public void setup() {
size(1680, 1080);
frameRate(100);
background(255);
println("gifAnimation " + Gif.version());
loopingGif = new Gif(this, "giftri2.gif");
loopingGif.loop();
animation = Gif.getPImages(this, "giftri2.gif");
}
void draw() {
for(int i = 0; i<= width; i= i+50){
for(int j = 0; j<= height; j= j+50){
image(loopingGif, i, j);
}
}
}
My investigation has figured out how multiply my gifs but I've been really stuck with trying to make it so they appear starting from the left side of the screen until it fills up. Each column is an individual gif.
Is there a way to make the columns appear one after another?
Thank you
1