UNPKG

@chayns/colors

Version:

JavaScript utility functions for the calculation of colors for chayns

5 lines (4 loc) 311 B
import type { RGB255, RGBA255 } from '../types/rgb'; declare function getRandomRgb255Color<T extends boolean = false>(transparency?: T | undefined): T extends true ? RGBA255 : RGB255; declare function getRandomHexColor(transparency?: boolean): string | null; export { getRandomHexColor, getRandomRgb255Color };