Pixi’VN
indexNamespaceseffectsFunctions

Function: desaturateEffect()

pixi-vn on GitHub

> desaturateEffect(alias, options?, priority?): Promise<string[] | undefined>

Defined in: src/canvas/functions/canvas-effect.ts:730

Desaturate the canvas element: color drains out to DesaturateEffectProps.amount and recovers back to normal - a single dip, not a repeated oscillation (AdjustmentFilter).

Parameters

alias

string

The alias to identify the component.

options?

DesaturateEffectProps = {}

Animation options.

priority?

UPDATE_PRIORITY

The priority of the PixiJS ticker.

Returns

Promise<string[] | undefined>

On this page