Skip to content

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

Open
@SanielDan

Description

@SanielDan

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedMany hands make light work. Please help!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions