@batpb/genart - v2.0.0-rc.3-alpha.1
    Preparing search index...

    Interface PaletteColor

    A color to be used in a Palette.

    2.0.0

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

    Hierarchy (View Summary)

    Index

    Properties

    DISCRIMINATOR: PALETTE_COLOR

    Discriminator value for the implementing interface.

    HEX: string

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

    2.0.0

    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).

      2.0.0

    • ReadonlyL: number

      The lightness component (0-100).

      2.0.0

    • ReadonlyS: number

      The saturation component (0-100).

      2.0.0

    2.0.0

    LUMINANCE?: number

    The luminance of the color (0-1).

    2.0.0

    NAME: string

    The name of the color.

    2.0.0

    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).

      2.0.0

    • ReadonlyG: number

      The green component (0-255).

      2.0.0

    • ReadonlyR: number

      The red component (0-255).

      2.0.0

    2.0.0