@fluentui/react
Version:
Reusable React components for building web experiences.
10 lines • 417 B
JavaScript
import { MAX_COLOR_SATURATION, MAX_COLOR_VALUE } from './consts';
import { hsv2hex } from './hsv2hex';
/**
* Converts a color hue to an HTML color string (with # prefix).
* This implementation ignores all components of `color` except hue.
*/
export function getFullColorString(color) {
return "#".concat(hsv2hex(color.h, MAX_COLOR_SATURATION, MAX_COLOR_VALUE));
}
//# sourceMappingURL=getFullColorString.js.map