How do you load a gif in a sketch?

edited April 2016 in Library Questions

What I have is

  PImage dogMoving;
  float dogMovingx, dogMovingy

setup(){

 dogMoving = loadImage("dogWalking.gif");
   dogMovingx=600;
    dogMovingy=300;

}

draw(){

image(dogMoving, dogMovingx, dogMovingy);

}
Tagged:
Sign In or Register to comment.