browser-image
    Preparing search index...

    Interface WhiteBalanceOptions

    White balance from a gray point: the color (sRGB-encoded, 0-1) of something in the picture that should be neutral gray. Pixels of that color become gray and white keeps its brightness. Take it from the image with sampleColor.

    interface WhiteBalanceOptions {
        r?: number;
        g?: number;
        b?: number;
    }
    Index
    r?: number

    Red of the gray point. Default 0.5.

    g?: number

    Green of the gray point. Default 0.5.

    b?: number

    Blue of the gray point. Default 0.5.