You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems like occasionally, when colors are similar, the gif encoder doesn't always write over pixels of the previous frame, leaving trails. This seems most noticeable when drawing similar colors on top of each other (e.g. in the example below, I don't see any artifacts if I make the moving circles black.)
It looks like this is something with the applyPalette function in the gif encoding library we use. I made an issue for that upstream (mattdesl/gifenc#13) and wrote a workaround in p5 that doesn't rely on that function. I'll add it to a PR!
Most appropriate sub-area of p5.js?
p5.js version
1.5.0
Web browser and version
Firefox 107.0
Operating System
macOS 12.5.1
Steps to reproduce this
It seems like occasionally, when colors are similar, the gif encoder doesn't always write over pixels of the previous frame, leaving trails. This seems most noticeable when drawing similar colors on top of each other (e.g. in the example below, I don't see any artifacts if I make the moving circles black.)
Live: https://editor.p5js.org/davepagurek/sketches/aQPkuFJEM
Exported gif:
The text was updated successfully, but these errors were encountered: