nhb-toolbox
Version:
A versatile collection of smart, efficient, and reusable utility functions and classes for everyday development needs.
16 lines • 730 B
TypeScript
import type { HSL, RandomHexRGB } from './types';
/**
* * Utility to generate a unique random HSL color.
*
* @param maxColors - The maximum number of recent colors to store in memory. Default is `16`.
* @returns Generated unique random color in `HSL` format.
*/
export declare const generateRandomHSLColor: (maxColors?: number) => HSL;
/**
* * Utility to generate a unique random color in Hex6 and RGB format.
*
* @param maxColors - The maximum number of recent colors to store in memory. Default is `16`.
* @returns An object of generated unique random color in both `Hex` and `RGB` formats.
*/
export declare const generateRandomColorInHexRGB: (maxColors?: number) => RandomHexRGB;
//# sourceMappingURL=random.d.ts.map