PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

blitting COLOR_FILL with ALPHA ?

hi !
first, big thanks for the edge lib ! I'm learning it, but it seems really powerfull !

I can't manage to blit my sprite with a colorfill AND an alpha value (to have a nice shadow behind my sprite !)
how can it be done ?

thanks !
STuFF : RTFM ;)

Blit a rectangle of pixels from one surface to another. When combining color effect filters and opacity, specify the property as: E_RGBA(red, green, blue, opacity).
um, you might wanna try this..

Code:
BltFast(x, y, object, NULL, EFX_COLORFILL | EFX_ALPHA, ECOLOR_RED | 90)


for alpha, i'm not quite sure if it needs color or numbers.. i never actually used them..