1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.updateSV = void 0;
|
4 | var tslib_1 = require("tslib");
|
5 | var hsv2rgb_1 = require("./hsv2rgb");
|
6 | var rgb2hex_1 = require("./rgb2hex");
|
7 | var _rgbaOrHexString_1 = require("./_rgbaOrHexString");
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 | function updateSV(color, s, v) {
|
15 | var _a = hsv2rgb_1.hsv2rgb(color.h, s, v), r = _a.r, g = _a.g, b = _a.b;
|
16 | var hex = rgb2hex_1.rgb2hex(r, g, b);
|
17 | return tslib_1.__assign(tslib_1.__assign({}, color), { s: s, v: v, r: r, g: g, b: b, hex: hex, str: _rgbaOrHexString_1._rgbaOrHexString(r, g, b, color.a, hex) });
|
18 | }
|
19 | exports.updateSV = updateSV;
|
20 |
|
\ | No newline at end of file |