Function: set_mask

Function: set_mask

Usage

 set_mask(image: image, mask: mask_image)

Make parts of an image (more) transparent using a mask. Black areas in the mask make the image transparent, white areas stay opaque.

The images must have the same size.

Parameters

Parameter Type Description
image image Image to apply the mask to
mask image Mask image.

Examples

 set_mask(image: "image1.png", mask: "image3.png")  ==  [[Image]]
 set_mask(image: "image1.png", mask: "image3.png") == "image_set_mask.png"

See also

set_alpha Change the transparency of an image.