C++ SFML Sprite.setColor(sf::Color) Details -
i'm attempting replicate effect of having translucent color layer on solid image in sfml. have base image renders fine in sfml. in image editor, have numerous layers on image create various colored instances of image. example, first red layer i've used has rgba value of 222, 14, 14, 128. when use sfml's setcolor method (using same rgba code) on base image's sprite, color of end image not same, , appearing less vibrant. misunderstanding method's usage, or bug? there way can same color image editor gives me?
sfml's setcolor function uses multiplication. if use color of pure white (255,255,255) sprite same. you're describing color in image editor less "vibrant" suspect layer using color add, rather multiply.
Comments
Post a Comment