-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Closed
Labels
Description
When loading an animated gif with loadImage() and applying a mask, the image is not masked. Doing the same thing with a still image obviously works:
Good to add that there seems to be some inconsistency with how different browsers behave (which I could not reproduce myself):
- Chrome (MAC) does not show the mask at all
- Firefox (WIN) flickers the mask on and off every now and then (as mentioned in this forum post: Discourse: Masks not working on animated gifs?
Steps to reproduce:
- Load any animated GIF image (in preload, with loadImage)
- Load an image used as a mask
- Apply the mask to the animated GIF
- Display the animated GIF
Expected:
- The animated GIF should be masked out using the applied mask
Result:
- The animated GIF shows as is. Masks are however applied on static images (JPG, PNG) using the same code.
Thing I tried:
- re-applying the mask every frame before the image is being displayed
- Using different GIFS (different sizes, lengths etc.)