Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
Graphics
»
Transparent color
Print
Pages: [
1
]
Author
Topic: Transparent color (Read 2170 times)
0 Members and 1 Guest are viewing this topic.
ravenheart
Full Member
Posts: 148
Transparent color
«
on:
October 05, 2008, 06:21:34 pm »
how can i do that in a certain sprite a certain color is not being shown on screen?
Logged
Laurent
Administrator
Hero Member
Posts: 32498
Transparent color
«
Reply #1 on:
October 05, 2008, 06:47:12 pm »
Use a TGA or PNG image which can have an alpha channel, or use sf::Image::CreateMaskFromColor(color) to set the given color as transparent.
Logged
Laurent Gomila - SFML developer
Print
Pages: [
1
]
SFML community forums
»
Help
»
Graphics
»
Transparent color
anything