@fluentui/react
Version:
Reusable React components for building web experiences.
13 lines • 540 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getFullColorString = getFullColorString;
var consts_1 = require("./consts");
var hsv2hex_1 = require("./hsv2hex");
/**
* Converts a color hue to an HTML color string (with # prefix).
* This implementation ignores all components of `color` except hue.
*/
function getFullColorString(color) {
return "#".concat((0, hsv2hex_1.hsv2hex)(color.h, consts_1.MAX_COLOR_SATURATION, consts_1.MAX_COLOR_VALUE));
}
//# sourceMappingURL=getFullColorString.js.map