UNPKG

@ngxmc/color-picker

Version:
19 lines (18 loc) 539 B
import { ColorInputFormat } from './color-input-format'; export declare class Color { r: number; g: number; b: number; a: number; roundA: number; hex: string; rgba: string; constructor(_r: number, _g: number, _b: number, _a?: number); toHex(allow3Char?: boolean): string; toRgba(): string; toHexString(allow3Char?: boolean): string; toRgbString(): string; toHex8(allow4Char: any): string; toHex8String(allow4Char?: boolean): string; toString(format: ColorInputFormat): string; }