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

Re: [pygame] rendering anti-alias in argument color with transparency



On 26/08/11 04:25 AM, Aaron Brady wrote:
I'd like to know if anti-aliased objects, in particular the edges of
lines and fonts, can be rendered using transparency instead of
directly blended colors.  Specifically, can the function calls draw 4-
tuples of ( r, g, b ) specified in the arguments, plus + ( a,  ), the
proportion of intensity determined by the drawing algorithm?


Hi,

Font.render returns a per-pixel alpha surface with transparency if no background color is given.

Lenard Lindstrom