fast-mesh-wasm
    Preparing search index...

    Interface ColorRule

    How Scene.setColoring turns a field into vertex colours.

    interface ColorRule {
        above?: OutOfRange;
        base?: Rgba;
        below?: OutOfRange;
        center?: number;
        field: FieldHandle;
        map: Colormap;
        nan?: Rgba;
        range: readonly [number, number];
    }
    Index
    above?: OutOfRange

    Values above hi, including far (Infinity): defaults to "base".

    base?: Rgba

    The "base" colour. Defaults to light grey [200, 200, 200, 255].

    below?: OutOfRange

    Values below lo: the colormap's end colour or base. Defaults to "clamp".

    center?: number

    A value within range pinned to the middle of the colormap.

    A field on the coloured mesh.

    nan?: Rgba

    The colour of NaN (dead or unused vertices). Defaults to [128, 128, 128, 255].

    range: readonly [number, number]

    [lo, hi] mapped onto the colormap; finite, lo < hi.