chromaticity-color-utilities
Advanced tools
Comparing version 0.13.1-alpha to 0.13.2-alpha
@@ -99,3 +99,3 @@ "use strict"; | ||
case 'colordodge': | ||
newValue = b == 1 ? 0 : a / (1 - b); | ||
newValue = b == 1 ? 1 : a / (1 - b); | ||
break; | ||
@@ -106,3 +106,8 @@ case 'colorburn': | ||
case 'vividlight': | ||
newValue = b > 0.5 ? (b == 1 ? 0 : a / (1 - b)) : a > 0 ? 1 - b / a : 0; | ||
if (b > 0.5) { | ||
newValue = b == 1 ? 1 : a / (1 - b); | ||
} | ||
else { | ||
newValue = a > 0 ? 1 - ((1 - b) / a) : 0; | ||
} | ||
break; | ||
@@ -109,0 +114,0 @@ case 'subtraction': |
{ | ||
"name": "chromaticity-color-utilities", | ||
"version": "0.13.1-alpha", | ||
"version": "0.13.2-alpha", | ||
"description": "Color utilities for Node.js", | ||
@@ -5,0 +5,0 @@ "main": "dist/main.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
358043
8665