Name | Type | Attributes | Description |
---|---|---|---|
options |
GlitchFilterOptions |
<optional> |
Options for the GlitchFilter constructor. |
Extends
- Filter
Members
defaults GlitchFilterOptions staticreadonly
Default constructor options.
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 offset.
- Default Value:
- {x:0,y:0}
The angle in degree of the offset of slices.
- Default Value:
- 0
The fill mode of the space after the offset.
- Default Value:
- FILL_MODES.TRANSPARENT
Green channel offset.
- Default Value:
- {x:0,y:0}
Minimum size of slices as a portion of the sampleSize
- Default Value:
- 8
The maximum offset amount of slices.
- Default Value:
- 100
Manually set custom slices offset of displacement bitmap, this is
a collection of values from -1 to 1. To change the max offset value
set offset
.
Red channel offset.
- Default Value:
- {x:0,y:0}
Height of the displacement map canvas.
- Default Value:
- 512
A seed value for randomizing glitch effect.
- Default Value:
- 0
Manually custom slices size (height) of displacement bitmap
The count of slices.
- Default Value:
- 5
The displacement map is used to generate the bands.
If using your own texture, slices
will be ignored.
Methods
Removes all references
Redraw displacement bitmap texture, advanced usage.
Regenerating random size, offsets for slices.
Shuffle the sizes of the slices, advanced usage.