Function: set_alpha

Function: set_alpha

Usage

 set_alpha(input: image, alpha: transparency value)

Make an image more transparent.

The transprarency is multiplied by alpha. If alpha is 1 the image stays the same, if alpha is 0 the image becomes completely transprent.

Parameters

Parameter Type Description
input image Image to make transparent.
alpha real number Transparency factor.

Examples

 set_alpha("image1.png", alpha: 0.5)  ==  [[Image]]
 set_alpha("image1.png", alpha: 0.5) == "image_set_alpha.png"

See also

set_mask Set the transparancy mask of an image.