Louis93
Louis93

Reputation: 3913

Having issues with making Sprites transparent in pygame! (image included inside)

Doubt

Even though I've set the transparency of the image to 'True', I am still unable to clear the fuzz around it. I've tried various methods, playing around with it in Photoshop to no avail. Any help would be greatly appreciated. Thanks!

Upvotes: 0

Views: 240

Answers (2)

ninMonkey
ninMonkey

Reputation: 7501

Note: save as png. Jpeg will cause compression, probably why you are expecting a solid color of white, and it isn't.

Png will be loss-less, and even has alpha-transparency (255 levels if wanted).

Or you can set alpha using color_key of white.

Upvotes: 0

TorelTwiddler
TorelTwiddler

Reputation: 6156

It looks like on the image in photoshop, you'll need to clean up the file. Check the alpha on the parts of the image that are white.

Upvotes: 2

Related Questions