@runejs/common
Version:
Common logging, networking, compression, and other miscellaneous functionality for RuneJS.
19 lines (18 loc) • 579 B
TypeScript
export declare type ColorFormat = 'rgb' | 'hsl' | 'hsv' | 'hcl' | 'lab';
export declare const constants: {
black_hue: number;
white_hue: number;
black_saturation: number;
white_saturation: number;
};
export declare abstract class Color<T> {
readonly format: ColorFormat;
alpha: number;
constructor(format: ColorFormat, alpha?: number);
/**
* Converts the color into a debug string.
*/
abstract toString(): string;
static values<T>(colorValues: Partial<T>): Partial<T>;
values(colorValues: Partial<T>): T;
}