SFML community forums
Help => Graphics => Topic started by: hippocat on March 03, 2010, 04:09:33 am
-
Is there any way to fill shape not just color but specific pattern or bitmap ?
Thanks
Aleksey
-
No.
-
Not directly. You could render the shape to an image (SFML 2) and then modify all colored pixels (e.g. copy the texture to them). Eventually, you work with a sf::Sprite instead of sf::Shape.
-
There's no need to modify the pixels manually, you can adapt the blend mode of the sf::Shape and the sf::Sprite to get the effect you want. :wink:
-
Interesting, so I can fill shape with color I like and employ blender somehow to make pattern ? Could anyone give me short sample for this color blending ?
Thanks
Aleksey