MaskConfig

class MaskConfig

The mask configuration for MaskFilter.

Constructor


new MaskConfig(maskBefore: boolean, channel: MASK_CHANNEL) → {}
Parameters:
Name Type Default Description
maskBefore boolean false

If true, MaskFilter will mask the input of the applied filter instead of the output. In the case of a blur filter, this would cause cause the boundaries of the mask to soften as the blur would apply to the masked region instead of being clipped into it.

channel MASK_CHANNEL

The mask channel indicating which pixels are in the mask region.

Summary


Properties from MaskConfig

maskBefore
boolean
safeFlipY = false

Flag that indicates the applied filter is Y-symmetric.

Public Properties


maskBefore MaskFilter.ts:34
maskBefore
safeFlipY MaskFilter.ts:48
safeFlipY: boolean = false

Flag that indicates the applied filter is Y-symmetric.

MaskFilter will optimize rendering by not flipping the screen backdrop before passing it to the blend filter for Y-symmetric filters.

A filter is Y-symmetric if giving it an inverted input and then inverting the output is equivalent to giving it an upright input.


Powered by webdoc!