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

Author Topic: How do you make some colors transparent in a texture  (Read 1419 times)

0 Members and 1 Guest are viewing this topic.

lukaius

  • Guest
How do you make some colors transparent in a texture
« on: November 03, 2017, 03:17:12 pm »
Hello, i have some pictures ,which are in the .png format, that i made the back ground white, then i set the texture and of course the background was white. So now i need some one to tell me hoe to make a color of a sprite transparent.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11032
    • View Profile
    • development blog
    • Email
Re: How do you make some colors transparent in a texture
« Reply #1 on: November 03, 2017, 04:09:13 pm »
Set a transparent color (alpha value = 0) instead of white.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

achpile

  • Full Member
  • ***
  • Posts: 231
    • View Profile
    • Achpile's homepage
    • Email
Re: How do you make some colors transparent in a texture
« Reply #2 on: November 03, 2017, 04:09:45 pm »
Hello, i have some pictures ,which are in the .png format, that i made the back ground white, then i set the texture and of course the background was white. So now i need some one to tell me hoe to make a color of a sprite transparent.

use GIMP and find some tutorial

lukaius

  • Guest
Re: How do you make some colors transparent in a texture
« Reply #3 on: November 03, 2017, 07:05:16 pm »
thanks I tried mt paint on Linux but now i'll Install gimp UBUNTU FOREVER

 

anything