transparancy with png

This is the place for queries about ThorPy issues : installation, coding, ...
buffalo
Posts: 44
Joined: Thu Feb 25, 2016 10:34 am

transparancy with png

Postby buffalo » Fri Jul 14, 2017 9:32 am

I have pictures with png files which background should have total transparency.
I get a black background in place, i dont know how to fix that.

ThorPy
Site Admin
Posts: 21
Joined: Wed May 13, 2015 9:44 pm

Re: transparancy with png

Postby ThorPy » Tue Jul 25, 2017 5:23 pm

It could be a pure pygame problem (or not).

Send your code and maybe I can help.

buffalo
Posts: 44
Joined: Thu Feb 25, 2016 10:34 am

Re: transparancy with png

Postby buffalo » Thu Jan 25, 2018 4:19 pm

An example tip to solve the problem:

Code: Select all

logoAlien = thorpy.load_image("mini_alien.png").convert()
transColor = logoAlien.get_at((0,0))
logoAlien.set_colorkey(transColor)


Return to “General ThorPy help”

Who is online

Users browsing this forum: No registered users and 2 guests