1 | "use strict";
|
2 |
|
3 | exports.__esModule = true;
|
4 | exports["default"] = void 0;
|
5 | var _hslToRgb = _interopRequireDefault(require("./_hslToRgb"));
|
6 | var _reduceHexValue = _interopRequireDefault(require("./_reduceHexValue"));
|
7 | var _numberToHex = _interopRequireDefault(require("./_numberToHex"));
|
8 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
9 | function colorToHex(color) {
|
10 | return (0, _numberToHex["default"])(Math.round(color * 255));
|
11 | }
|
12 | function convertToHex(red, green, blue) {
|
13 | return (0, _reduceHexValue["default"])("#" + colorToHex(red) + colorToHex(green) + colorToHex(blue));
|
14 | }
|
15 | function hslToHex(hue, saturation, lightness) {
|
16 | return (0, _hslToRgb["default"])(hue, saturation, lightness, convertToHex);
|
17 | }
|
18 | var _default = exports["default"] = hslToHex;
|
19 | module.exports = exports.default; |
\ | No newline at end of file |