UNPKG

424 BTypeScriptView Raw
1import type { IHSV, IColor } from './interfaces';
2/**
3 * Converts an HSV color (and optional alpha value) to a color object.
4 * If `a` is not given, a default of 100 is used.
5 * Hex in the returned value will *not* be prefixed with #.
6 * If `a` is unspecified or 100, the result's `str` property will contain a hex value
7 * (*not* prefixed with #)
8 */
9export declare function getColorFromHSV(hsv: IHSV, a?: number): IColor;