Skip to main content

ClipNode

Description:

  A Node that can clip its children based on the alpha values of its stencil.

Class Object: ClipNode Class.

Inherits from: Node.

stencil

Type: Field.

Description:

  The stencil Node that defines the clipping shape.

Signature:

stencil: Node

alphaThreshold

Type: Field.

Description:

  The minimum alpha threshold for a pixel to be visible. Value ranges from 0 to 1.

Signature:

alphaThreshold: number

inverted

Type: Field.

Description:

  Whether to invert the clipping area.

Signature:

inverted: boolean