ImageScript v4.0.0
    Preparing search index...

    InterfaceDitherOptions

    How colors are dithered when they are reduced to a palette: options of Image.quantize and the GIF encoders

    interface DitherOptions {
        dither?: DitherMethod;
        ditherStrength?: number;
    }

    Hierarchy (View Summary)

    Index
    dither?: DitherMethod

    How to spread small color changes across nearby pixels to make gradients look smoother with few colors, see DitherMethod

    'floyd-steinberg'

    ditherStrength?: number

    How strongly to apply dithering: 0 disables it (like 'none'); 1 applies it fully

    0.85