UNPKG

@etsoo/shared

Version:

TypeScript shared utilities and functions

24 lines (23 loc) 720 B
import { EColor } from "./types/EColor"; /** * Color utils */ export declare namespace ColorUtils { /** * Get HEX or RGB colors * @param init Initial color * @param factor Increase factor * @param adjustOrder Adjust order to increase difference * @param hex to HEX or not * @returns Result */ function getColors(init?: string, factor?: number, adjustOrder?: boolean, hex?: boolean): string[]; /** * Get EColors * @param init Initial color * @param factor Increase factor * @param adjustOrder Adjust order to increase difference * @returns Result */ function getEColors(init?: string, factor?: number, adjustOrder?: boolean): EColor[]; }