office-ui-fabric-react
Version:
Reusable React components for building experiences for Microsoft 365.
13 lines • 606 B
JavaScript
define(["require", "exports", "./consts", "./hsv2hex"], function (require, exports, consts_1, hsv2hex_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Converts a color hue to an HTML color string (with # prefix).
* This implementation ignores all components of `color` except hue.
*/
function getFullColorString(color) {
return "#" + hsv2hex_1.hsv2hex(color.h, consts_1.MAX_COLOR_SATURATION, consts_1.MAX_COLOR_VALUE);
}
exports.getFullColorString = getFullColorString;
});
//# sourceMappingURL=getFullColorString.js.map