A description of the dominant colors in an image.

interface DominantColor {
    Blue?: number;
    CSSColor?: string;
    Green?: number;
    HexCode?: string;
    PixelPercent?: number;
    Red?: number;
    SimplifiedColor?: string;
}

Properties

Blue?: number

The Blue RGB value for a dominant color.

CSSColor?: string

The CSS color name of a dominant color.

Green?: number

The Green RGB value for a dominant color.

HexCode?: string

The Hex code equivalent of the RGB values for a dominant color.

PixelPercent?: number

The percentage of image pixels that have a given dominant color.

Red?: number

The Red RGB value for a dominant color.

SimplifiedColor?: string

One of 12 simplified color names applied to a dominant color.