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
Using tint() on different image() call for the same PImage cause all the images being tinted of the same color.
Your Environment
Processing version: 3.5.4
Operating System and OS version: Windows 10
Other information:
Possible Causes / Solutions
The problem is caused by the caching system that the PImage use when the FX2D rederer is on.
The image is cached with the last used tint value, that cause all the images being displayed with the same color, if they are refered to the same PImage.
The PImage should be probably cached once per color in order to allow the drawing of different tinted version of the same PImage.
Activity
stigmollerhansen commentedon Apr 7, 2021
Until this bug gets fixed, adding g.removeCache(); after applying a tint to a PImage is a possible workaround.