1
Graphics / Sprite.setColor Miscoloring
« on: July 24, 2013, 01:04:06 am »
I'm attempting to replicate the effect of having a translucent color layer over a solid image in SFML. I have my base image which renders fine in SFML. In my image editor, I've tested numerous layers over the image to create various colored instances of the image. For example, the first red layer I've used has an RGBA value of 222, 14, 14, 128. When I use SFML's setColor method (using this same RGBA code) on the base image's sprite, the color of the end image is not the same. Am I misunderstanding the method's usage, or is this some bug? Is there a way I can get the same color my image editor gives me?