illustrator.js
Version:
JavaScript image processing library
20 lines (19 loc) • 492 B
TypeScript
import { ColorConfig, ColorSwatches } from "./ColorSwatches";
export interface IllustratorColorData {
hex: `#${string}`;
int: number;
rgba: number[];
cmyk: number[];
hsla: number[];
}
export declare class IllustratorColor {
#private;
readonly swatches: ColorSwatches;
readonly data: ColorConfig;
constructor(swatches: ColorSwatches, data: ColorConfig);
hex(): string;
int(): number;
rgba(): string;
rgb(): string;
get name(): string;
}