iobroker.zigbee 1.8.23 → 1.8.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +418 -415
  3. package/admin/adapter-settings.js +244 -244
  4. package/admin/admin.js +2984 -2981
  5. package/admin/i18n/de/translations.json +108 -108
  6. package/admin/i18n/en/translations.json +108 -108
  7. package/admin/i18n/es/translations.json +102 -102
  8. package/admin/i18n/fr/translations.json +108 -108
  9. package/admin/i18n/it/translations.json +102 -102
  10. package/admin/i18n/nl/translations.json +108 -108
  11. package/admin/i18n/pl/translations.json +108 -108
  12. package/admin/i18n/pt/translations.json +102 -102
  13. package/admin/i18n/ru/translations.json +108 -108
  14. package/admin/i18n/uk/translations.json +108 -108
  15. package/admin/i18n/zh-cn/translations.json +102 -102
  16. package/admin/img/philips_hue_lom001.png +0 -0
  17. package/admin/index.html +163 -159
  18. package/admin/index_m.html +1360 -1356
  19. package/admin/moment.min.js +1 -1
  20. package/admin/shuffle.min.js +2 -2
  21. package/admin/tab_m.html +1013 -1009
  22. package/admin/vis-network.min.css +1 -1
  23. package/admin/vis-network.min.js +27 -27
  24. package/admin/words.js +110 -110
  25. package/docs/de/basedocu.md +19 -19
  26. package/docs/de/readme.md +126 -126
  27. package/docs/en/readme.md +128 -128
  28. package/docs/flashing_via_arduino_(en).md +110 -110
  29. package/docs/ru/readme.md +28 -28
  30. package/docs/tutorial/groups-1.png +0 -0
  31. package/docs/tutorial/groups-2.png +0 -0
  32. package/docs/tutorial/tab-dev-1.png +0 -0
  33. package/io-package.json +28 -27
  34. package/lib/backup.js +171 -171
  35. package/lib/binding.js +319 -319
  36. package/lib/colors.js +465 -465
  37. package/lib/commands.js +534 -534
  38. package/lib/developer.js +145 -145
  39. package/lib/devices.js +3135 -3135
  40. package/lib/exclude.js +162 -162
  41. package/lib/exposes.js +913 -913
  42. package/lib/groups.js +345 -345
  43. package/lib/json.js +59 -59
  44. package/lib/networkmap.js +55 -55
  45. package/lib/ota.js +198 -198
  46. package/lib/rgb.js +297 -297
  47. package/lib/seriallist.js +48 -48
  48. package/lib/states.js +6420 -6420
  49. package/lib/statescontroller.js +672 -672
  50. package/lib/tools.js +54 -54
  51. package/lib/utils.js +165 -165
  52. package/lib/zbBaseExtension.js +36 -36
  53. package/lib/zbDelayedAction.js +144 -144
  54. package/lib/zbDeviceAvailability.js +319 -319
  55. package/lib/zbDeviceConfigure.js +149 -147
  56. package/lib/zbDeviceEvent.js +48 -48
  57. package/lib/zigbeecontroller.js +994 -989
  58. package/package.json +8 -8
  59. package/support/docgen.js +93 -93
package/lib/rgb.js CHANGED
@@ -1,297 +1,297 @@
1
- /*
2
- With these functions you can convert the CIE color space to the RGB color space and vice versa.
3
-
4
- The developer documentation for Philips Hue provides the formulas used in the code below:
5
- https://developers.meethue.com/documentation/color-conversions-rgb-xy
6
-
7
- I've used the formulas and Objective-C example code and transferred it to JavaScript.
8
-
9
-
10
- Examples:
11
-
12
- const rgb = cie_to_rgb(0.6611, 0.2936)
13
- const cie = rgb_to_cie(255, 39, 60)
14
-
15
- ------------------------------------------------------------------------------------
16
-
17
- The MIT License (MIT)
18
-
19
- Copyright (c) 2017 www.usolved.net
20
- Published under https://github.com/usolved/cie-rgb-converter
21
-
22
- Permission is hereby granted, free of charge, to any person obtaining a copy
23
- of this software and associated documentation files (the "Software"), to deal
24
- in the Software without restriction, including without limitation the rights
25
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
26
- copies of the Software, and to permit persons to whom the Software is
27
- furnished to do so, subject to the following conditions:
28
-
29
- The above copyright notice and this permission notice shall be included in
30
- all copies or substantial portions of the Software.
31
-
32
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
33
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
34
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
35
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
36
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
37
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
38
- THE SOFTWARE.
39
- */
40
- 'use strict';
41
-
42
- const colors = require('./colors.js');
43
-
44
- /**
45
- * Converts CIE color space to RGB color space
46
- * @param {Number} x
47
- * @param {Number} y
48
- * @param {Number} brightness - Ranges from 1 to 254
49
- * @return {Array} Array that contains the color values for red, green and blue
50
- */
51
- function cie_to_rgb(x, y, brightness) {
52
- //Set to maximum brightness if no custom value was given (Not the slick ECMAScript 6 way for compatibility reasons)
53
- if (brightness === undefined) {
54
- brightness = 254;
55
- }
56
-
57
- const z = 1.0 - x - y;
58
- const Y = (brightness / 254).toFixed(2);
59
- const X = (Y / y) * x;
60
- const Z = (Y / y) * z;
61
-
62
- //Convert to RGB using Wide RGB D65 conversion
63
- let red = X * 1.656492 - Y * 0.354851 - Z * 0.255038;
64
- let green = -X * 0.707196 + Y * 1.655397 + Z * 0.036152;
65
- let blue = X * 0.051713 - Y * 0.121364 + Z * 1.011530;
66
-
67
- //If red, green or blue is larger than 1.0 set it back to the maximum of 1.0
68
- if (red > blue && red > green && red > 1.0) {
69
- green = green / red;
70
- blue = blue / red;
71
- red = 1.0;
72
- } else if (green > blue && green > red && green > 1.0) {
73
- red = red / green;
74
- blue = blue / green;
75
- green = 1.0;
76
- } else if (blue > red && blue > green && blue > 1.0) {
77
-
78
- red = red / blue;
79
- green = green / blue;
80
- blue = 1.0;
81
- }
82
-
83
- //Reverse gamma correction
84
- red = red <= 0.0031308 ? 12.92 * red : (1.0 + 0.055) * Math.pow(red, (1.0 / 2.4)) - 0.055;
85
- green = green <= 0.0031308 ? 12.92 * green : (1.0 + 0.055) * Math.pow(green, (1.0 / 2.4)) - 0.055;
86
- blue = blue <= 0.0031308 ? 12.92 * blue : (1.0 + 0.055) * Math.pow(blue, (1.0 / 2.4)) - 0.055;
87
-
88
- //Convert normalized decimal to decimal
89
- red = Math.round(red * 255);
90
- green = Math.round(green * 255);
91
- blue = Math.round(blue * 255);
92
-
93
- if (isNaN(red) || red < 0) {
94
- red = 0;
95
- }
96
-
97
- if (isNaN(green) || green < 0) {
98
- green = 0;
99
- }
100
-
101
- if (isNaN(blue) || blue < 0) {
102
- blue = 0;
103
- }
104
-
105
- return [red, green, blue];
106
- }
107
-
108
-
109
- /**
110
- * Converts RGB color space to CIE color space
111
- * @param {Number} red
112
- * @param {Number} green
113
- * @param {Number} blue
114
- * @return {Array} Array that contains the CIE color values for x and y
115
- */
116
- function rgb_to_cie(red, green, blue) {
117
- // Apply a gamma correction to the RGB values, which makes the color more vivid and more the like the color displayed on the screen of your device
118
- red = (red > 0.04045) ? Math.pow((red + 0.055) / (1.0 + 0.055), 2.4) : (red / 12.92);
119
- green = (green > 0.04045) ? Math.pow((green + 0.055) / (1.0 + 0.055), 2.4) : (green / 12.92);
120
- blue = (blue > 0.04045) ? Math.pow((blue + 0.055) / (1.0 + 0.055), 2.4) : (blue / 12.92);
121
-
122
- // RGB values to XYZ using the Wide RGB D65 conversion formula
123
- const X = red * 0.664511 + green * 0.154324 + blue * 0.162028;
124
- const Y = red * 0.283881 + green * 0.668433 + blue * 0.047685;
125
- const Z = red * 0.000088 + green * 0.072310 + blue * 0.986039;
126
-
127
- // Calculate the xy values from the XYZ values
128
- let x = (X / (X + Y + Z)).toFixed(4);
129
- let y = (Y / (X + Y + Z)).toFixed(4);
130
-
131
- if (isNaN(x)) {
132
- x = 0;
133
- }
134
-
135
- if (isNaN(y)) {
136
- y = 0;
137
- }
138
-
139
- return [x, y];
140
- }
141
-
142
-
143
- function hsvToRGB(h, s, v) {
144
- h = h % 360 / 360;
145
- s = s / 100;
146
- v = v / 100;
147
-
148
- let r;
149
- let g;
150
- let b;
151
- if (arguments.length === 1) {
152
- s = h.s;
153
- v = h.v;
154
- h = h.h;
155
- }
156
- const i = Math.floor(h * 6);
157
- const f = h * 6 - i;
158
- const p = v * (1 - s);
159
- const q = v * (1 - f * s);
160
- const t = v * (1 - (1 - f) * s);
161
- switch (i % 6) {
162
- case 0:
163
- r = v;
164
- g = t;
165
- b = p;
166
- break;
167
- case 1:
168
- r = q;
169
- g = v;
170
- b = p;
171
- break;
172
- case 2:
173
- r = p;
174
- g = v;
175
- b = t;
176
- break;
177
- case 3:
178
- r = p;
179
- g = q;
180
- b = v;
181
- break;
182
- case 4:
183
- r = t;
184
- g = p;
185
- b = v;
186
- break;
187
- case 5:
188
- r = v;
189
- g = p;
190
- b = q;
191
- break;
192
- }
193
- return {
194
- r: Math.round(r * 255),
195
- g: Math.round(g * 255),
196
- b: Math.round(b * 255),
197
- };
198
- }
199
-
200
- function rgbToHSV(r, g, b, numeric) {
201
- if (arguments.length === 1) {
202
- g = r.g;
203
- b = r.b;
204
- r = r.r;
205
- }
206
- const max = Math.max(r, g, b);
207
- const min = Math.min(r, g, b);
208
- const d = max - min;
209
- let h;
210
- const s = (max === 0 ? 0 : d / max);
211
- const v = max / 255;
212
-
213
- switch (max) {
214
- case min:
215
- h = 0;
216
- break;
217
- case r:
218
- h = (g - b) + d * (g < b ? 6 : 0);
219
- h /= 6 * d;
220
- break;
221
- case g:
222
- h = (b - r) + d * 2;
223
- h /= 6 * d;
224
- break;
225
- case b:
226
- h = (r - g) + d * 4;
227
- h /= 6 * d;
228
- break;
229
- }
230
- if (numeric) {
231
- return {
232
- h: Math.round(h * 360),
233
- s: Math.round(s * 100),
234
- v: Math.round(v * 100),
235
- };
236
- }
237
- return {
238
- h: (h * 360).toFixed(3),
239
- s: (s * 100).toFixed(3),
240
- v: (v * 100).toFixed(3),
241
- };
242
- }
243
-
244
- function colorArrayFromString(value) {
245
- if (typeof value === 'string') {
246
- const rv = [];
247
- value.split(',').forEach(element =>
248
- rv.push(colors.ParseColor(element)));
249
- return rv;
250
- }
251
- return [{r: 0, g: 128, b: 255}];
252
- }
253
-
254
- function colorStringFromRGBArray(payload) {
255
- const rv = [];
256
- payload.forEach(element =>
257
- rv.push(rgb_to_rgbstring(element)));
258
- return rv.toString();
259
- }
260
-
261
- function hsv_to_cie(h, s, v) {
262
- const rgb = hsvToRGB(h, s, v);
263
- return rgb_to_cie(rgb.r, rgb.g, rgb.b);
264
- }
265
-
266
- function rgb_to_rgbstring(element) {
267
- let col = '#';
268
- if (element && element.hasOwnProperty('r')) {
269
- col = col + element.r.toString(16).padStart(2, '0');
270
- } else {
271
- col = col + '00';
272
- }
273
- if (element && element.hasOwnProperty('g')) {
274
- col = col + element.g.toString(16).padStart(2, '0');
275
- } else {
276
- col = col + '00';
277
- }
278
- if (element && element.hasOwnProperty('b')) {
279
- col = col + element.b.toString(16).padStart(2, '0');
280
- } else {
281
- col = col + '00';
282
- }
283
- return col;
284
- }
285
-
286
- function hsvToRGBString(h, s, v) {
287
- return rgb_to_rgbstring(hsvToRGB(h, s, v));
288
- }
289
-
290
- exports.hsv_to_cie = hsv_to_cie;
291
- exports.rgb_to_cie = rgb_to_cie;
292
- exports.cie_to_rgb = cie_to_rgb;
293
- exports.hsvToRGB = hsvToRGB;
294
- exports.rgbToHSV = rgbToHSV;
295
- exports.colorArrayFromString = colorArrayFromString;
296
- exports.colorStringFromRGBArray = colorStringFromRGBArray;
297
- exports.hsvToRGBString = hsvToRGBString;
1
+ /*
2
+ With these functions you can convert the CIE color space to the RGB color space and vice versa.
3
+
4
+ The developer documentation for Philips Hue provides the formulas used in the code below:
5
+ https://developers.meethue.com/documentation/color-conversions-rgb-xy
6
+
7
+ I've used the formulas and Objective-C example code and transferred it to JavaScript.
8
+
9
+
10
+ Examples:
11
+
12
+ const rgb = cie_to_rgb(0.6611, 0.2936)
13
+ const cie = rgb_to_cie(255, 39, 60)
14
+
15
+ ------------------------------------------------------------------------------------
16
+
17
+ The MIT License (MIT)
18
+
19
+ Copyright (c) 2017 www.usolved.net
20
+ Published under https://github.com/usolved/cie-rgb-converter
21
+
22
+ Permission is hereby granted, free of charge, to any person obtaining a copy
23
+ of this software and associated documentation files (the "Software"), to deal
24
+ in the Software without restriction, including without limitation the rights
25
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
26
+ copies of the Software, and to permit persons to whom the Software is
27
+ furnished to do so, subject to the following conditions:
28
+
29
+ The above copyright notice and this permission notice shall be included in
30
+ all copies or substantial portions of the Software.
31
+
32
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
33
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
34
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
35
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
36
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
37
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
38
+ THE SOFTWARE.
39
+ */
40
+ 'use strict';
41
+
42
+ const colors = require('./colors.js');
43
+
44
+ /**
45
+ * Converts CIE color space to RGB color space
46
+ * @param {Number} x
47
+ * @param {Number} y
48
+ * @param {Number} brightness - Ranges from 1 to 254
49
+ * @return {Array} Array that contains the color values for red, green and blue
50
+ */
51
+ function cie_to_rgb(x, y, brightness) {
52
+ //Set to maximum brightness if no custom value was given (Not the slick ECMAScript 6 way for compatibility reasons)
53
+ if (brightness === undefined) {
54
+ brightness = 254;
55
+ }
56
+
57
+ const z = 1.0 - x - y;
58
+ const Y = (brightness / 254).toFixed(2);
59
+ const X = (Y / y) * x;
60
+ const Z = (Y / y) * z;
61
+
62
+ //Convert to RGB using Wide RGB D65 conversion
63
+ let red = X * 1.656492 - Y * 0.354851 - Z * 0.255038;
64
+ let green = -X * 0.707196 + Y * 1.655397 + Z * 0.036152;
65
+ let blue = X * 0.051713 - Y * 0.121364 + Z * 1.011530;
66
+
67
+ //If red, green or blue is larger than 1.0 set it back to the maximum of 1.0
68
+ if (red > blue && red > green && red > 1.0) {
69
+ green = green / red;
70
+ blue = blue / red;
71
+ red = 1.0;
72
+ } else if (green > blue && green > red && green > 1.0) {
73
+ red = red / green;
74
+ blue = blue / green;
75
+ green = 1.0;
76
+ } else if (blue > red && blue > green && blue > 1.0) {
77
+
78
+ red = red / blue;
79
+ green = green / blue;
80
+ blue = 1.0;
81
+ }
82
+
83
+ //Reverse gamma correction
84
+ red = red <= 0.0031308 ? 12.92 * red : (1.0 + 0.055) * Math.pow(red, (1.0 / 2.4)) - 0.055;
85
+ green = green <= 0.0031308 ? 12.92 * green : (1.0 + 0.055) * Math.pow(green, (1.0 / 2.4)) - 0.055;
86
+ blue = blue <= 0.0031308 ? 12.92 * blue : (1.0 + 0.055) * Math.pow(blue, (1.0 / 2.4)) - 0.055;
87
+
88
+ //Convert normalized decimal to decimal
89
+ red = Math.round(red * 255);
90
+ green = Math.round(green * 255);
91
+ blue = Math.round(blue * 255);
92
+
93
+ if (isNaN(red) || red < 0) {
94
+ red = 0;
95
+ }
96
+
97
+ if (isNaN(green) || green < 0) {
98
+ green = 0;
99
+ }
100
+
101
+ if (isNaN(blue) || blue < 0) {
102
+ blue = 0;
103
+ }
104
+
105
+ return [red, green, blue];
106
+ }
107
+
108
+
109
+ /**
110
+ * Converts RGB color space to CIE color space
111
+ * @param {Number} red
112
+ * @param {Number} green
113
+ * @param {Number} blue
114
+ * @return {Array} Array that contains the CIE color values for x and y
115
+ */
116
+ function rgb_to_cie(red, green, blue) {
117
+ // Apply a gamma correction to the RGB values, which makes the color more vivid and more the like the color displayed on the screen of your device
118
+ red = (red > 0.04045) ? Math.pow((red + 0.055) / (1.0 + 0.055), 2.4) : (red / 12.92);
119
+ green = (green > 0.04045) ? Math.pow((green + 0.055) / (1.0 + 0.055), 2.4) : (green / 12.92);
120
+ blue = (blue > 0.04045) ? Math.pow((blue + 0.055) / (1.0 + 0.055), 2.4) : (blue / 12.92);
121
+
122
+ // RGB values to XYZ using the Wide RGB D65 conversion formula
123
+ const X = red * 0.664511 + green * 0.154324 + blue * 0.162028;
124
+ const Y = red * 0.283881 + green * 0.668433 + blue * 0.047685;
125
+ const Z = red * 0.000088 + green * 0.072310 + blue * 0.986039;
126
+
127
+ // Calculate the xy values from the XYZ values
128
+ let x = (X / (X + Y + Z)).toFixed(4);
129
+ let y = (Y / (X + Y + Z)).toFixed(4);
130
+
131
+ if (isNaN(x)) {
132
+ x = 0;
133
+ }
134
+
135
+ if (isNaN(y)) {
136
+ y = 0;
137
+ }
138
+
139
+ return [x, y];
140
+ }
141
+
142
+
143
+ function hsvToRGB(h, s, v) {
144
+ h = h % 360 / 360;
145
+ s = s / 100;
146
+ v = v / 100;
147
+
148
+ let r;
149
+ let g;
150
+ let b;
151
+ if (arguments.length === 1) {
152
+ s = h.s;
153
+ v = h.v;
154
+ h = h.h;
155
+ }
156
+ const i = Math.floor(h * 6);
157
+ const f = h * 6 - i;
158
+ const p = v * (1 - s);
159
+ const q = v * (1 - f * s);
160
+ const t = v * (1 - (1 - f) * s);
161
+ switch (i % 6) {
162
+ case 0:
163
+ r = v;
164
+ g = t;
165
+ b = p;
166
+ break;
167
+ case 1:
168
+ r = q;
169
+ g = v;
170
+ b = p;
171
+ break;
172
+ case 2:
173
+ r = p;
174
+ g = v;
175
+ b = t;
176
+ break;
177
+ case 3:
178
+ r = p;
179
+ g = q;
180
+ b = v;
181
+ break;
182
+ case 4:
183
+ r = t;
184
+ g = p;
185
+ b = v;
186
+ break;
187
+ case 5:
188
+ r = v;
189
+ g = p;
190
+ b = q;
191
+ break;
192
+ }
193
+ return {
194
+ r: Math.round(r * 255),
195
+ g: Math.round(g * 255),
196
+ b: Math.round(b * 255),
197
+ };
198
+ }
199
+
200
+ function rgbToHSV(r, g, b, numeric) {
201
+ if (arguments.length === 1) {
202
+ g = r.g;
203
+ b = r.b;
204
+ r = r.r;
205
+ }
206
+ const max = Math.max(r, g, b);
207
+ const min = Math.min(r, g, b);
208
+ const d = max - min;
209
+ let h;
210
+ const s = (max === 0 ? 0 : d / max);
211
+ const v = max / 255;
212
+
213
+ switch (max) {
214
+ case min:
215
+ h = 0;
216
+ break;
217
+ case r:
218
+ h = (g - b) + d * (g < b ? 6 : 0);
219
+ h /= 6 * d;
220
+ break;
221
+ case g:
222
+ h = (b - r) + d * 2;
223
+ h /= 6 * d;
224
+ break;
225
+ case b:
226
+ h = (r - g) + d * 4;
227
+ h /= 6 * d;
228
+ break;
229
+ }
230
+ if (numeric) {
231
+ return {
232
+ h: Math.round(h * 360),
233
+ s: Math.round(s * 100),
234
+ v: Math.round(v * 100),
235
+ };
236
+ }
237
+ return {
238
+ h: (h * 360).toFixed(3),
239
+ s: (s * 100).toFixed(3),
240
+ v: (v * 100).toFixed(3),
241
+ };
242
+ }
243
+
244
+ function colorArrayFromString(value) {
245
+ if (typeof value === 'string') {
246
+ const rv = [];
247
+ value.split(',').forEach(element =>
248
+ rv.push(colors.ParseColor(element)));
249
+ return rv;
250
+ }
251
+ return [{r: 0, g: 128, b: 255}];
252
+ }
253
+
254
+ function colorStringFromRGBArray(payload) {
255
+ const rv = [];
256
+ payload.forEach(element =>
257
+ rv.push(rgb_to_rgbstring(element)));
258
+ return rv.toString();
259
+ }
260
+
261
+ function hsv_to_cie(h, s, v) {
262
+ const rgb = hsvToRGB(h, s, v);
263
+ return rgb_to_cie(rgb.r, rgb.g, rgb.b);
264
+ }
265
+
266
+ function rgb_to_rgbstring(element) {
267
+ let col = '#';
268
+ if (element && element.hasOwnProperty('r')) {
269
+ col = col + element.r.toString(16).padStart(2, '0');
270
+ } else {
271
+ col = col + '00';
272
+ }
273
+ if (element && element.hasOwnProperty('g')) {
274
+ col = col + element.g.toString(16).padStart(2, '0');
275
+ } else {
276
+ col = col + '00';
277
+ }
278
+ if (element && element.hasOwnProperty('b')) {
279
+ col = col + element.b.toString(16).padStart(2, '0');
280
+ } else {
281
+ col = col + '00';
282
+ }
283
+ return col;
284
+ }
285
+
286
+ function hsvToRGBString(h, s, v) {
287
+ return rgb_to_rgbstring(hsvToRGB(h, s, v));
288
+ }
289
+
290
+ exports.hsv_to_cie = hsv_to_cie;
291
+ exports.rgb_to_cie = rgb_to_cie;
292
+ exports.cie_to_rgb = cie_to_rgb;
293
+ exports.hsvToRGB = hsvToRGB;
294
+ exports.rgbToHSV = rgbToHSV;
295
+ exports.colorArrayFromString = colorArrayFromString;
296
+ exports.colorStringFromRGBArray = colorStringFromRGBArray;
297
+ exports.hsvToRGBString = hsvToRGBString;