@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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/util.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@texel/color",
3
- "version": "1.1.9",
3
+ "version": "1.1.10",
4
4
  "description": "a minimal and modern color library",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
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=GAMUT_EPSILON] The epsilon value for comparison.
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 = GAMUT_EPSILON) => {
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];