Skip to content

Commit 57ba1f1

Browse files
authored
eslint-disable-line no-unused-vars
1 parent ecf4ad9 commit 57ba1f1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Conversions/RgbHsvConversion.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ true
6767
* @param value Brightness-value of the color.
6868
* @return The tuple of RGB-components.
6969
*/
70-
function hsvToRgb (hue, saturation, value) {
70+
function hsvToRgb (hue, saturation, value) { // eslint-disable-line no-unused-vars
7171
if (hue < 0 || hue > 360) {
7272
throw new Error('hue should be between 0 and 360')
7373
}
@@ -96,7 +96,7 @@ function hsvToRgb (hue, saturation, value) {
9696
* @param blue Blue-component of the color.
9797
* @return The tuple of HSV-components.
9898
*/
99-
function rgbToHsv (red, green, blue) {
99+
function rgbToHsv (red, green, blue) { // eslint-disable-line no-unused-vars
100100
if (red < 0 || red > 255) {
101101
throw new Error('red should be between 0 and 255')
102102
}
@@ -132,7 +132,7 @@ function rgbToHsv (red, green, blue) {
132132
return [hue, saturation, value]
133133
}
134134

135-
function approximatelyEqualHsv (hsv1, hsv2) {
135+
function approximatelyEqualHsv (hsv1, hsv2) { // eslint-disable-line no-unused-vars
136136
const bHue = Math.abs(hsv1[0] - hsv2[0]) < 0.2
137137
const bSaturation = Math.abs(hsv1[1] - hsv2[1]) < 0.002
138138
const bValue = Math.abs(hsv1[2] - hsv2[2]) < 0.002

0 commit comments

Comments
 (0)