# Function: glitchEffect() (/pixi-vn/index/namespaces/effects/functions/glitchEffect)



\> **glitchEffect**(`alias`, `options?`, `priority?`): `Promise`\<`string`\[] | `undefined`>

Defined in: [src/canvas/functions/canvas-effect.ts:463](https://github.com/DRincs-Productions/pixi-vn/blob/5bb5bb1f92e38998ea2f477b600168d8da3ece19/src/canvas/functions/canvas-effect.ts#L463)

Glitch the canvas element: decaying, jittery bursts of digital-corruption slice displacement
([GlitchFilter](https://pixijs.io/filters/docs/GlitchFilter.html)) - each burst snaps,
kicks back the other way and settles - with a matching red/blue channel split layered on top
([RGBSplitFilter](https://pixijs.io/filters/docs/RGBSplitFilter.html), see
[GlitchEffectProps.rgbSplit](/pixi-vn/index/interfaces/GlitchEffectProps#rgbsplit)). Both filters are removed once done. Returns one ticker id
per filter.

Known cosmetic quirk: `GlitchFilter`'s own `destroy()` (called once this effect completes, to
clean up its displacement texture) can log a harmless `PixiJS Warning: [BindGroup] a
'textureSource'/'textureSampler' was destroyed while still bound to a shader` in the console -
this comes from `pixi-filters`' own implementation, not from this effect, doesn't affect the
component's rendering or state, and every property is still correctly restored/detached.

## Parameters [#parameters]

### alias [#alias]

`string`

The alias to identify the component.

### options? [#options]

[`GlitchEffectProps`](/pixi-vn/index/interfaces/GlitchEffectProps) = `{}`

Animation options.

### priority? [#priority]

`UPDATE_PRIORITY`

The priority of the PixiJS ticker.

## Returns [#returns]

`Promise`\<`string`\[] | `undefined`>
