Interface: GlitchFilterOptions

GlitchFilterOptions

Options for the GlitchFilter constructor.

Properties:
Name Type Default Description
average boolean false

true will divide the bands roughly based on equal amounts where as setting to false will vary the band sizes dramatically (more random looking).

blue PointData | number[] {x:0,y:0}

Blue offset.

direction number 0

The angle in degree of the offset of slices.

fillMode number FILL_MODES.TRANSPARENT

The fill mode of the space after the offset.

green PointData | number[] {x:0,y:0}

Green channel offset.

minSize number 8

Minimum size of slices as a portion of the sampleSize

offset number 100

The maximum offset amount of slices.

red PointData | number[] {x:0,y:0}

Red channel offset.

sampleSize number 512

Height of the displacement map canvas.

seed number 0

A seed value for randomizing glitch effect.

slices number 5

The count of glitch slices.

Members

average boolean

true will divide the bands roughly based on equal amounts where as setting to false will vary the band sizes dramatically (more random looking).

Default Value:
  • false

blue PointData | number[]

Blue offset.

Default Value:
  • {x:0,y:0}

direction number

The angle in degree of the offset of slices.

Default Value:
  • 0

fillMode number

The fill mode of the space after the offset.

Default Value:
  • FILL_MODES.TRANSPARENT

green PointData | number[]

Green channel offset.

Default Value:
  • {x:0,y:0}

minSize number

Minimum size of slices as a portion of the sampleSize

Default Value:
  • 8

offset number

The maximum offset amount of slices.

Default Value:
  • 100

red PointData | number[]

Red channel offset.

Default Value:
  • {x:0,y:0}

sampleSize number

Height of the displacement map canvas.

Default Value:
  • 512

seed number

A seed value for randomizing glitch effect.

Default Value:
  • 0

slices number

The count of glitch slices.

Default Value:
  • 5