I was wanting to add a fire gif, just have it flicker etc.
I know how to load images but did not know if the same would work for a gif?
Would I have to do it like a video or load individually frames?
It is not meant to be a big part of the app so don't want it to be a massive memory requirement.
There's nothing built in for animations, so you'd have to save each frame as a separate image. It would be possible to stick all the images in one 'film strip' but rendering them back out is a bit more tricky code-wise.
If you're storing them in flash it's unlikely to be a huge issue for memory usage though.
Don't worry about formatting, just type in the text and we'll take care of making sense of it. We will auto-convert links, and if you put asterisks around words we will make them bold.
For a full reference visit the Markdown syntax.
© Espruino, powered by microcosm.
Report a problem