@texel/color 1.1.9 → 1.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/util.js +2 -2
package/package.json
CHANGED
package/src/util.js
CHANGED
|
@@ -92,11 +92,11 @@ export const RGBtoHex = RGBToHex;
|
|
|
92
92
|
* Checks if an RGB color is within the gamut.
|
|
93
93
|
* @method
|
|
94
94
|
* @param {Vector} lrgb The linear RGB array.
|
|
95
|
-
* @param {number} [ep=
|
|
95
|
+
* @param {number} [ep=0] The epsilon value for comparison.
|
|
96
96
|
* @returns {boolean} True if the color is within the gamut, false otherwise.
|
|
97
97
|
* @category rgb
|
|
98
98
|
*/
|
|
99
|
-
export const isRGBInGamut = (lrgb, ep =
|
|
99
|
+
export const isRGBInGamut = (lrgb, ep = 0) => {
|
|
100
100
|
const r = lrgb[0];
|
|
101
101
|
const g = lrgb[1];
|
|
102
102
|
const b = lrgb[2];
|