MotionScript

@motion-script/core


@motion-script/core / DitherOptions

Interface: DitherOptions

Defined in: attributes/shape/effects/chain.ts:251

Ordered (Bayer) dithering. Scalar shorthand sets levels.

Extends

Properties

levels?

optional levels?: number

Defined in: attributes/shape/effects/chain.ts:253

Output tones per channel, ≥ 2 (default 2).


matrix?

optional matrix?: DitherMatrix

Defined in: attributes/shape/effects/chain.ts:265

Bayer matrix size (default 4). Ignored when noise is 'blue'.


mode?

optional mode?: EffectMode

Defined in: attributes/shape/effects/effect-data.ts:83

Inherited from

EffectOptions.mode


monochrome?

optional monochrome?: boolean

Defined in: attributes/shape/effects/chain.ts:269

Dither luminance to black and white (default false).


noise?

optional noise?: 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?

optional scale?: number

Defined in: attributes/shape/effects/chain.ts:267

Pattern cell size in pixels (default 1).