[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] rendering anti-alias in argument color with transparency
On Fri, Aug 26, 2011 at 12:11 PM, Lenard Lindstrom <len-l@xxxxxxxxx> wrote:
> 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
>
>
I stand corrected on that count. Perhaps we could use the same
strategy on the rest of the drawing methods, namely return a new
Surface for every primitive rendered.