Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tint() on FX2D renderer does not work properly #1

Open
SanielDan opened this issue May 13, 2020 · 1 comment
Open

tint() on FX2D renderer does not work properly #1

SanielDan opened this issue May 13, 2020 · 1 comment
Labels
help wanted Many hands make light work. Please help!

Comments

@SanielDan
Copy link

Description

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.

@stigmollerhansen
Copy link

Until this bug gets fixed, adding g.removeCache(); after applying a tint to a PImage is a possible workaround.

@benfry benfry transferred this issue from processing/processing Jan 16, 2022
@benfry benfry added the help wanted Many hands make light work. Please help! label Jan 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Many hands make light work. Please help!
Projects
None yet
Development

No branches or pull requests

3 participants