🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@texel/color

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@texel/color - npm Package Compare versions

Comparing version
1.1.9
to
1.1.10
+1
-1
package.json
{
"name": "@texel/color",
"version": "1.1.9",
"version": "1.1.10",
"description": "a minimal and modern color library",

@@ -5,0 +5,0 @@ "type": "module",

@@ -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];