From 57ba1f1ee4f803289353cac53d0b050cc9eb01eb Mon Sep 17 00:00:00 2001 From: algobytewise Date: Mon, 12 Apr 2021 16:27:35 +0530 Subject: [PATCH] eslint-disable-line no-unused-vars --- Conversions/RgbHsvConversion.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Conversions/RgbHsvConversion.js b/Conversions/RgbHsvConversion.js index 41d7b14aa..4904fd221 100644 --- a/Conversions/RgbHsvConversion.js +++ b/Conversions/RgbHsvConversion.js @@ -67,7 +67,7 @@ true * @param value Brightness-value of the color. * @return The tuple of RGB-components. */ -function hsvToRgb (hue, saturation, value) { +function hsvToRgb (hue, saturation, value) { // eslint-disable-line no-unused-vars if (hue < 0 || hue > 360) { throw new Error('hue should be between 0 and 360') } @@ -96,7 +96,7 @@ function hsvToRgb (hue, saturation, value) { * @param blue Blue-component of the color. * @return The tuple of HSV-components. */ -function rgbToHsv (red, green, blue) { +function rgbToHsv (red, green, blue) { // eslint-disable-line no-unused-vars if (red < 0 || red > 255) { throw new Error('red should be between 0 and 255') } @@ -132,7 +132,7 @@ function rgbToHsv (red, green, blue) { return [hue, saturation, value] } -function approximatelyEqualHsv (hsv1, hsv2) { +function approximatelyEqualHsv (hsv1, hsv2) { // eslint-disable-line no-unused-vars const bHue = Math.abs(hsv1[0] - hsv2[0]) < 0.2 const bSaturation = Math.abs(hsv1[1] - hsv2[1]) < 0.002 const bValue = Math.abs(hsv1[2] - hsv2[2]) < 0.002