How to use gif as background

edited September 2017 in Library Questions

I loaded the gif but it freezes after the first frame

      PImage fightbg;
        void setup() {
          fullScreen();
          fightbg = loadImage("fightbg.gif");
        }
        void draw(){
          background(fightbg);
        }
Tagged:
Sign In or Register to comment.