Mask

This page documents the development version of Graphite at dev.graphite.art, which may differ from the current release.

Hides the input graphics where the mask graphic is dark or transparent, showing them where it is white or opaque.

A mask applied before shadows and glows shapes them, and one applied after them hides them as well.

Interface

Inputs

ParameterDetailsPossible Types
Content

The content to mask.

Primary Input

Color[]
Color
Generator[]
Generator
Gradient[]
Gradient
Graphic[]
Graphic
Raster[]
Raster
String[]
String
Vector[]
Vector
Mask

The graphics whose brightness or opacity shows the content, together as one. A gradient or image without its own placement stretches across the content.

The mask moves with the content when it is transformed afterward.

Exposed to the Graph by Default

Graphic[]
Mode

Whether the mask's luminance or its alpha shows the content.

Default: Luminance

MaskMode[]
MaskMode
Density

How fully the mask hides the content, so at 50% the parts it hides show at half strength.

Default: 100%

Number[]
Number
Feather

How far the mask's edges are softened.

Default: 0 px

Number[]
Number
Invert

Shows the content where the mask would hide it, and hides it where the mask would show it.

Default: false

Bool[]
Bool

Outputs

ProductDetailsPossible Types
Result

The value produced by the node operation.

Primary Output

Graphic
Graphic[]
Vector
Vector[]
Raster
Raster[]
Color
Color[]
Gradient
Gradient[]
String
String[]
Generator
Generator[]