extract-colors
Advanced tools
Comparing version 1.1.1 to 1.1.2
{ | ||
"name": "extract-colors", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Extract color palettes from images", | ||
@@ -5,0 +5,0 @@ "main": "dist/extract-colors.cjs.js", |
@@ -68,3 +68,3 @@ # Extract Colors | ||
`pixels` | ||
**pixels** | ||
_Total pixel number of the resized picture for calculation_ | ||
@@ -74,3 +74,3 @@ Type: `Integer` | ||
`distance` | ||
**distance** | ||
_From 0 to 1 is the color distance to not have near colors (1 distance is between White and Black)_ | ||
@@ -80,3 +80,3 @@ Type: `Number` | ||
`saturationImportance` | ||
**saturationImportance** | ||
_Power of the saturation weight during the process (0 is not used, 1 is equal only saturaton and not area size)_ | ||
@@ -86,3 +86,3 @@ Type: `Number` | ||
`splitPower` | ||
**splitPower** | ||
_Approximation power in the first color splitting during process (from 2 to 16)_ | ||
@@ -92,3 +92,3 @@ Type: `Integer` | ||
`colorValidator` | ||
**colorValidator** | ||
_Enable only some colors_ | ||
@@ -98,3 +98,3 @@ Type: `Function` | ||
`crossOrigin` | ||
**crossOrigin** | ||
_Only for browser, can be 'Anonymous' to avoid CORS_ | ||
@@ -101,0 +101,0 @@ Type: `String` |
12995