[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] imprecise outlines using set_colorkey()



On Mon, Oct 10, 2011 at 12:24 PM, Sean Wolfe <ether.joe@xxxxxxxxx> wrote:
Hey all,

I am wondering if there's a fix for this. I'm using art is originally
on a white background, so I used set_colorkey([255,255,255]) to remove
the background, but I'm getting an imprecise outline. I'm thinking
it's because of antialiasing?
Yes, that's exactly it.  The best solution is to define an alpha channel in your image, and then load the image with per pixel alpha data with .convert_alpha.

See attached picture ragged_outline.png .

Thanks!