Animating over a static image/sprite #2920
Replies: 1 comment
-
The library does not have any functions specifically for animations. Possibilities include:
For the latter 2 this function can be used: The mask can be a 1bpp sprite created and drawn in by the sketch. I have created an example using sprites: Note there is a bug in the library that will need to be corrected for this to work. The master library has been updated, see here: You can either add that line in your copy of the library or download the master library direct from github. This fun example shows how the principle can be used for simple masked animations: In this example masks are created out of the letters and this mask is then used on the snowflakes sprite. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I figured I'd ask if there was a known method to do this before coding it up myself:
I want to have a static background image (or perhaps a sprite?) which I animate shapes over top of (without deleting). The minimum example I want is filling a circle symmetrically from the outside in, and then reversing that. Essentially a blink or an irising effect.
Is that doable? My immediate thought is a derivative of https://github.com/Bodmer/TFT_eSPI/blob/master/examples/320%20x%20240/TFT_ArcFill/TFT_ArcFill.ino but I'm not sure the ideal way to maintain the image without layers (and smoothly, perhaps with DMA).
I have more complex animations I just plan on doing with GIFs but this seems simple enough I could do it programmatically.
Beta Was this translation helpful? Give feedback.
All reactions