UNPKG

395 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.hsl2hsv = void 0;
4/** Converts HSL components to an HSV color. */
5function hsl2hsv(h, s, l) {
6 s *= (l < 50 ? l : 100 - l) / 100;
7 var v = l + s;
8 return {
9 h: h,
10 s: v === 0 ? 0 : ((2 * s) / v) * 100,
11 v: v,
12 };
13}
14exports.hsl2hsv = hsl2hsv;
15//# sourceMappingURL=hsl2hsv.js.map
\No newline at end of file