sorry, the blit musty be

tmp.blit(surf, (0,0), surf.get_rect(), BLEND_RGBA_MULT)

--

claxo

On Wed, Sep 24, 2008 at 2:58 AM, claudio canepa <[EMAIL PROTECTED]> wrote:

>
> something like:
>
> def get_alphaed( surf, alpha):
>
>     tmp = Pygame.Surface( surf.get_size(), SRCALPHA, 32)
>
>     tmp.fill( (alpha,alpha,alpha,alpha) )
>
>     tmp.blit( surf, (0,0), surf.get_size(), BLEND_RGBA_MULT)
>
>     return tmp
>
> (untested)
>
> --
>
> claxo
>

Reply via email to