Take alook at my PaintBrush project. The PaintBrush class has a
feature to set both color and to modify the current alpha values on a
brush (wich actually is a surface).

Best regards
/John

http://www.pygame.org/project/1280/?release_id=2230

2009/9/20 Ian Mallett <geometr...@gmail.com>:
> On Sat, Sep 19, 2009 at 3:30 PM, Eric Pavey <warp...@gmail.com> wrote:
>>
>> Based on your suggestion I tried
>> surface.fill(color, special_flags=BLEND_RGB_MULT)
>>
>> And actually, it's working great.  From four lines to one, nice.
>>
>> Thanks for the tip!
>
> I like this method.  I actually didn't know surface.fill() took any other
> arguments...
> On Sat, Sep 19, 2009 at 8:58 PM, <jas...@peak.org> wrote:
>>
>> It's not Pygame strictly, but if you're using Pyopengl w/ Pygame, you can
>> pass such a tint as a "color" param when drawing a textured Quad in
>> Pyopengl, without needing to monkey with surfaces at all.
>
> Or use glColor{3|4|}f()
>>
>> -Jasper
>
> Ian
>

Reply via email to