Class: StencilSystem

PIXI.systems.StencilSystem

System plugin to the renderer to manage stencils (used for masks).

new PIXI.systems.StencilSystem (renderer)

Name Type Description
renderer PIXI.Renderer

The renderer this System works for.

Extends

Members

The renderer this manager works for.

stencilMaskStack Array.<PIXI.Graphics>

The mask stack

Methods

Destroys the mask stack.

popStencil ()

Removes the last mask from the stencil stack. @alvin

pushStencil (graphics)

Applies the Mask and adds it to the current stencil stack. @alvin

Name Type Description
graphics PIXI.Graphics

The mask

setMaskStack (stencilMaskStack)

Changes the mask stack that is used by this System.

Name Type Description
stencilMaskStack Array.<PIXI.Graphics>

The mask stack