export interface RGB { r: number; g: number; b: number; } export interface HSL { h: number; s: number; l: number; } export type RGBArray = [number, number, number]; export type ColorValue = number | string | Color; /** RGB color with channel values in [0, 1]. */ export declare class Color { #private; static HUE_SCALE: number; static SATURATION_SCALE: number; static LIGHTNESS_SCALE: number; static RGB_SCALE: number; static toRGB(color: ColorValue): RGB; /** * Creates a Color from a packed 16-bit HSL integer produced by * {@link MathUtils.packHsl16}. */ static fromHsl16(value: number): Color; r: number; g: number; b: number; /** * Accepts a single ColorValue or three separate r, g, b components. * With no arguments the color is initialised to black. */ constructor(); constructor(value: ColorValue); constructor(r: number, g: number, b: number); get hex(): number; get hexString(): string; get hsl(): HSL; /** Returns the color as a packed 16-bit HSL integer. */ get hsl16(): number; get hslString(): string; clone(): Color; copy(source: Color): this; /** Writes h, s, l into target and returns it. */ getHSL(target?: HSL): HSL; lerpColors(c1: Color, c2: Color, t: number): this; parse(value: ColorValue): this; /** Accepts a single ColorValue or three separate r, g, b components. */ set(value: ColorValue): this; set(r: number, g: number, b: number): this; /** @param value 24-bit integer (0x000000-0xFFFFFF) */ setHex(value: number): this; /** * @param h Hue in [0, 1] * @param s Saturation in [0, 1] * @param l Lightness in [0, 1] */ setHSL(h: number, s: number, l: number): this; /** Components must be in [0, 1] range (not 0-255). */ setRGB(r: number, g: number, b: number): this; /** @param value CSS color string: `#rgb`, `#rrggbb`, `rgb(...)`, `hsl(...)` */ setStyle(value: string): this; } //# sourceMappingURL=Color.d.ts.map