GIF animation help
in
Contributed Library Questions
•
1 year ago
Hi guys, first post here. I'm trying to upload a gif into my project. I downloaded the library, imported it, and imported the gif. however, when i run this code, it says "NullPointerException" at line 9. I'm relatively new to programming so any help would be appreciated
- import gifAnimation.*;
- Gif SonicRunGIF;
- void setup()
- {
- size(500,500);
- SonicRunGIF = new Gif(this, "SonicRunGIF.gif");
- }
- void draw()
- {
- image(SonicRunGIF,0,0);
- }
1