ForgeableSum Posted August 18, 2015 Share Posted August 18, 2015 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 More sharing options...
wayfinder Posted August 19, 2015 Share Posted August 19, 2015 It could be an output setting in Photoshop that's the culprit. Try and remove all color profile information from your assets (there are a bunch of tutorials around the web on how to do that). Link to comment Share on other sites More sharing options...
Recommended Posts