UNPKG

nhb-toolbox

Version:

A versatile collection of smart, efficient, and reusable utility functions and classes for everyday development needs.

19 lines 746 B
import type { Hex6, HSL, RGB } 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 Hex 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) => { hex: Hex6; rgb: RGB; }; //# sourceMappingURL=random.d.ts.map