export interface RGB { b: number; g: number; r: number; } export interface HSL { h: number; l: number; s: number; } export declare class Color { readonly hex: string; readonly hsl: HSL; readonly rgb: RGB; readonly yiq: number; constructor(value: string | RGB | HSL); static isColor(value: string): boolean; contrast: (threshold?: number) => Color; mix: (from: string | RGB | HSL | Color, amount?: number) => Color; shade: (weight?: number) => Color; tint: (weight?: number) => Color; toList(): string; }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
archive.d.ts | File | 44 B | 0644 |
|
archive.js | File | 146 B | 0644 |
|
color.d.ts | File | 572 B | 0644 |
|
color.js | File | 5.18 KB | 0644 |
|
emoji.d.ts | File | 68 B | 0644 |
|
emoji.js | File | 310 B | 0644 |
|
file.d.ts | File | 204 B | 0644 |
|
file.js | File | 708 B | 0644 |
|
http.d.ts | File | 810 B | 0644 |
|
http.js | File | 3.33 KB | 0644 |
|
logger.d.ts | File | 707 B | 0644 |
|
logger.js | File | 1.64 KB | 0644 |
|
npm.d.ts | File | 991 B | 0644 |
|
npm.js | File | 4.86 KB | 0644 |
|
uuid.d.ts | File | 91 B | 0644 |
|
uuid.js | File | 490 B | 0644 |
|