Interface DitherOpts

interface DitherOpts {
    bleed: number;
    channels: number[];
    threshold: number;
}

Properties

bleed: number

Error spillage/diffusion factor.

Default Value

1.0
channels: number[]

Channel IDs to limit processing (if omittet, all channels will be processed).

threshold: number

Normalized threshold (will be scaled to actual value range of each image channel). Mainly intended for THRESHOLD. Due to error diffusion, for most other dither configuration the theshold can be > 1.

Default Value

0.5

Generated using TypeDoc