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

Re: [pygame] Transparent surfaces



uhm can't you just do a blit onto your little surface of the section
of background that you want it to possess?then blit the text on top of
that?

On 4/27/05, James Reeves <jreeves@xxxxxxxxxxxxxxxxxxx> wrote:
> On Wednesday 27 Apr 2005 9:44 pm, Josiah Gordon wrote:
> > Yep, try this right after makeing the text surface:
> >
> > text.set_alpha(0)
> 
> That doesn't quite work; from what I can see, it sets the overall alpha
> transparency to 0, rather than the per-pixel alpha. SRCALPHA seems to be the
> way to go with this. Thanks anyway, though.
> 
> --
> James Reeves
> http://www.monkeyengines.co.uk/
>