Interface PaletteColor

A color to be used in a Palette.

interface PaletteColor {
    DISCRIMINATOR: PALETTE_COLOR;
    HEX: string;
    HSL: {
        H: number;
        L: number;
        S: number;
    };
    NAME: string;
    RGB: {
        B: number;
        G: number;
        R: number;
    };
}

Properties

DISCRIMINATOR: PALETTE_COLOR

Discriminator for determining if an object is a PaletteColor.

HEX: string

The hex string representation of the color (format: #RRGGBB).

HSL: {
    H: number;
    L: number;
    S: number;
}

The HSL (hue, saturation, lightness) components of the color.

Type declaration

  • ReadonlyH: number

    The hue component (0-360).

  • ReadonlyL: number

    The lightness component (0-100).

  • ReadonlyS: number

    The saturation component (0-100).

NAME: string

The name of the color.

RGB: {
    B: number;
    G: number;
    R: number;
}

The RGB (red, green, blue) components of the color.

Type declaration

  • ReadonlyB: number

    The blue component (0-255).

  • ReadonlyG: number

    The green component (0-255).

  • ReadonlyR: number

    The red component (0-255).