browser-image
    Preparing search index...

    Interface ColorClassesOptions

    Options of colorClasses.

    interface ColorClassesOptions {
        method?: ClassMethod;
        count?: number;
        scale?: ColorScale;
        reverse?: boolean;
        maxValues?: number;
        band?: number;
    }
    Index
    method?: ClassMethod

    equal (default): classes of equal width between the smallest and the largest value. quantile: classes of about as many pixels each. unique: a class per value (see maxValues).

    count?: number

    Number of classes (equal, quantile). Default 5.

    scale?: ColorScale

    The scale the class colors are taken from, evenly from one end to the other. Default turbo.

    reverse?: boolean

    Takes the colors from the other end of the scale. Default false.

    maxValues?: number

    unique: at most this many values (more give null). Default 64.

    band?: number

    The histogram's band the classes are made from. Default 0.