@tolokoban/tgd
Version:
ToloGameDev library for WebGL2
22 lines • 518 B
TypeScript
export declare class TgdColor {
/** Red [0..1] */
R: number;
/** Green [0..1] */
G: number;
/** Blue [0..1] */
B: number;
/** Alpha [0..1] */
A: number;
/** Hue [0..1] */
H: number;
/** Saturation [0..1] */
S: number;
/** Lumimance [0..1] */
L: number;
constructor(r?: number | string, g?: number, b?: number, a?: number);
parse(color: string): void;
toString(): string;
rgb2hsl(): this;
hsl2rgb(): this;
}
//# sourceMappingURL=color.d.ts.map