UNPKG

@gpa-gemstone/helper-functions

Version:
15 lines (14 loc) 570 B
/** * Converts an HSV color value to RGB hex code. Conversion formula * adapted from http://en.wikipedia.org/wiki/HSV_color_space. * code from https://axonflux.com/handy-rgb-to-hsl-and-rgb-to-hsv-color-model-c. * Assumes h, s, and v are contained in the set [0, 1] and * returns color in hex code. * * @param Number h The hue * @param Number s The saturation * @param Number v The value * @returns String Spaced color in hex code. */ declare function HsvToHex(h: number, s: number, v: number): string; export { HsvToHex };