@akashshyam/color-utilities
Version:
A handy, tiny utility library compatible with typescript. We offer color conversions, color validation, constrast comparison etc
8 lines (7 loc) • 344 B
TypeScript
import { ColorFormat } from './colorConversion';
/**
* Generate Random Color
* @param format the format of the color to be generated i.e. hex, rgb or hsl
* @returns returns a randomly generated color in the specified format
*/
export declare function generateRandomColor(format?: ColorFormat): string | import("./colorConversion").Color[];