Jump to content

RGB of images don't match RGB used in-game, .replaceRGB does not work


ForgeableSum
 Share

Recommended Posts

I'm trying to replace a color on a bitmapdata object with .replaceRGB. Problem is, the color I want to replace is slightly different when rendered in the game than it is in the texture atlas. I know this because if i take a screenshot of it while it's rendered in the game and compare it to the original image with the photoshop eyedropper tool, the colors have slightly different RGB values. If I target the values found in the screenshot with .replaceRGB, it works. But the original values won't work. 

 

Is Phaser/pixi doing something to slightly change RGB values?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...