browser-image
    Preparing search index...

    A color scale with its options, as GpuCorrectedTileLayer.setColorScale takes it.

    interface LayerColorScale {
        reverse?: boolean;
        fade?: boolean;
        scale: ColorScale;
        classes?: ColorClasses;
    }

    Hierarchy (View Summary)

    Index
    reverse?: boolean

    Runs the scale from white to black instead (dark pixels get the bright end). Default false.

    fade?: boolean

    Makes the dark end transparent, fading in along the scale: an image in such a scale can be laid over another one and only its bright parts show. Default false.

    scale: ColorScale

    A preset's name ('red', 'inferno'…) or the scale's stops. With classes, the scale their colors were taken from (kept for an editor).

    classes?: ColorClasses

    Shows the image in classes of its values, each in one flat color, in place of the scale (see colorClasses). The classes hold the image's values: raw values for an image read raw, 0-255 for an 8-bit one. The correction (brightness, contrast…) is not applied, so a value always gets its class's color.