Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Transparent color  (Read 2173 times)

0 Members and 1 Guest are viewing this topic.

ravenheart

  • Full Member
  • ***
  • Posts: 148
    • View Profile
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?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
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.
Laurent Gomila - SFML developer