update RgbHsvConversion.js

This commit is contained in:
algobytewise
2021-04-12 16:16:15 +05:30
committed by GitHub
parent b85ac9ae00
commit 21c1dda447

View File

@ -35,8 +35,7 @@ Test hsvToRgb-method
[128, 32, 80]
Test rgbToHsv-method
approximate-assertions needed because of small deviations due to converting between
int-values and double-values.
function "approximatelyEqualHsv" needed because of small deviations due to rounding for the RGB-values.
> approximatelyEqualHsv(rgbToHsv(0, 0, 0), [0, 0, 0])
true
> approximatelyEqualHsv(rgbToHsv(255, 255, 255), [0, 0, 1])