@motion-script/core / DitherOptions
Interface: DitherOptions
Defined in: attributes/shape/effects/chain.ts:251
Ordered (Bayer) dithering. Scalar shorthand sets levels.
Extends
Properties
levels?
optionallevels?:number
Defined in: attributes/shape/effects/chain.ts:253
Output tones per channel, ≥ 2 (default 2).
matrix?
optionalmatrix?:DitherMatrix
Defined in: attributes/shape/effects/chain.ts:265
Bayer matrix size (default 4). Ignored when noise is 'blue'.
mode?
optionalmode?:EffectMode
Defined in: attributes/shape/effects/effect-data.ts:83
Inherited from
EffectOptions.mode
monochrome?
optionalmonochrome?:boolean
Defined in: attributes/shape/effects/chain.ts:269
Dither luminance to black and white (default false).
noise?
optionalnoise?:DitherNoise
Defined in: attributes/shape/effects/chain.ts:263
Threshold pattern (default 'bayer').
'bayer' is the classic ordered matrix — a visible crosshatch, which is
the retro look and also what can beat against the pixel grid at some
scales. 'blue' is a void-and-cluster blue-noise field: same tone
reproduction, no lattice, no moiré. Reach for 'blue' when the dither
should read as texture rather than as pattern.
scale?
optionalscale?:number
Defined in: attributes/shape/effects/chain.ts:267
Pattern cell size in pixels (default 1).