@mcastiello/figmatic
Version:
22 lines (21 loc) • 563 B
TypeScript
import type { Color, RGBColor } from "../../types";
export declare class ColorValue {
private readonly color;
private readonly h;
private readonly s;
private readonly l;
constructor(color: RGBColor | Color);
get red(): number;
get green(): number;
get blue(): number;
get alpha(): number;
get hue(): number;
get saturation(): number;
get lightness(): number;
get hsl(): string;
get hsla(): string;
get rgb(): string;
get rgba(): string;
get hex(): string;
toString(hsl?: boolean): string;
}