|
67 | 67 | * @param value Brightness-value of the color. |
68 | 68 | * @return The tuple of RGB-components. |
69 | 69 | */ |
70 | | -function hsvToRgb (hue, saturation, value) { |
| 70 | +function hsvToRgb (hue, saturation, value) { // eslint-disable-line no-unused-vars |
71 | 71 | if (hue < 0 || hue > 360) { |
72 | 72 | throw new Error('hue should be between 0 and 360') |
73 | 73 | } |
@@ -96,7 +96,7 @@ function hsvToRgb (hue, saturation, value) { |
96 | 96 | * @param blue Blue-component of the color. |
97 | 97 | * @return The tuple of HSV-components. |
98 | 98 | */ |
99 | | -function rgbToHsv (red, green, blue) { |
| 99 | +function rgbToHsv (red, green, blue) { // eslint-disable-line no-unused-vars |
100 | 100 | if (red < 0 || red > 255) { |
101 | 101 | throw new Error('red should be between 0 and 255') |
102 | 102 | } |
@@ -132,7 +132,7 @@ function rgbToHsv (red, green, blue) { |
132 | 132 | return [hue, saturation, value] |
133 | 133 | } |
134 | 134 |
|
135 | | -function approximatelyEqualHsv (hsv1, hsv2) { |
| 135 | +function approximatelyEqualHsv (hsv1, hsv2) { // eslint-disable-line no-unused-vars |
136 | 136 | const bHue = Math.abs(hsv1[0] - hsv2[0]) < 0.2 |
137 | 137 | const bSaturation = Math.abs(hsv1[1] - hsv2[1]) < 0.002 |
138 | 138 | const bValue = Math.abs(hsv1[2] - hsv2[2]) < 0.002 |
|
0 commit comments