documentation indexreference manualfunction index

im.Alpha

Function: im.Alpha (image, alpha, **properties):

Returns an alpha-mapped version of the image. Alpha is the maximum alpha that this image can have, a number between 0.0 (fully transparent) and 1.0 (opaque).

If an image already has an alpha channel, values in that alpha channel are reduced as appropriate.

Example

init:
    image cyan alpha = im.Alpha("cyan.png", 0.5)



documentation indexreference manualfunction index