Your system asks for reduced motion, so VFX-JS draws nothing. Demos on this site show plain HTML.

Type

DitherParams

effects/src/dither.ts:97 ↗
import type { DitherParams } from "@vfx-js/effects";

Properties

brightness

brightness: number

Brightness applied before quantization (1 = unchanged).

contrast

contrast: number

Contrast applied before quantization (1 = unchanged).

levels

levels: number

Quantization steps per channel.

mono

mono: boolean

Output a single tinted channel instead of RGB.

monoColor

monoColor: string

Foreground tint for mono mode. Accepts a hex string.

size

size: number

Pattern scale, in px per dither cell.

style

style: DitherStyle

Dither pattern.