@texel/color
Advanced tools
+1
-1
| { | ||
| "name": "@texel/color", | ||
| "version": "1.1.9", | ||
| "version": "1.1.10", | ||
| "description": "a minimal and modern color library", | ||
@@ -5,0 +5,0 @@ "type": "module", |
+2
-2
@@ -95,7 +95,7 @@ /** | ||
| * @param {Vector} lrgb The linear RGB array. | ||
| * @param {number} [ep=GAMUT_EPSILON] The epsilon value for comparison. | ||
| * @param {number} [ep=0] The epsilon value for comparison. | ||
| * @returns {boolean} True if the color is within the gamut, false otherwise. | ||
| * @category rgb | ||
| */ | ||
| export const isRGBInGamut = (lrgb, ep = GAMUT_EPSILON) => { | ||
| export const isRGBInGamut = (lrgb, ep = 0) => { | ||
| const r = lrgb[0]; | ||
@@ -102,0 +102,0 @@ const g = lrgb[1]; |
111024
-0.02%