UNPKG

coersystem

Version:

Library for Angular projects

17 lines (16 loc) 853 B
import { IActionColors, IAppColors, IFixedColors } from "coersystem/interfaces"; /** class to work with colors */ export declare class Colors { /** Provides the fixed colors set by the coersystem library */ static get fixedColors(): IFixedColors; /** Provides the action colors set in the application */ static get actionColors(): IActionColors; /** Provides the colors of the application */ static get appColors(): IAppColors; /** Get Hexadecimal color */ static ToHexadecimal(red: number, green: number, blue: number, alpha?: number): string; /** Returns a random color in hexadecimal public static GetRandomColorHex = (): string => "#xxxxxx".replace(/x/g, () => (Math.random() * 16 | 0).toString(16)); */ /** Returns the number of colors requested */ static GetColorList(quantity: number): string[]; }