Skip to content

Commit a5ce661

Browse files
committed
- Updated README.
- Updated NPM.
1 parent f1ad686 commit a5ce661

File tree

4 files changed

+59
-61
lines changed

4 files changed

+59
-61
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,10 +442,10 @@ Find an optimally contrasting color for another color.
442442
- `stepSize` is a number between *0* and *1* indicating the amount to darken/lighten the color on each iteration, and will default to *0.01*.
443443

444444
```javascript
445-
const contrastColor = Color.findContrast(color1, color2, minContrast, stepSize);
445+
const contrastColor = Color.findContrast(color1, color2, options);
446446
```
447447

448-
If `color2` value is *null*, a clone of `color1` will be used instead.
448+
If `color2` value is *null*, `color1` will be used instead.
449449

450450
This method will tint/shade `color2` until it meets a minimum contrast threshold with `color1`, then the new color will be returned. If no valid contrast value can be found, this method will return *null* instead.
451451

dist/frost-color.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 52 additions & 54 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@fr0st/color",
3-
"version": "4.1.0",
3+
"version": "4.1.1",
44
"description": "FrostColor is a free, open-source color manipulation library for JavaScript.",
55
"keywords": [
66
"color",
@@ -40,10 +40,10 @@
4040
"license": "MIT",
4141
"private": false,
4242
"devDependencies": {
43-
"eslint": "^8.41.0",
43+
"eslint": "^8.45.0",
4444
"eslint-config-google": "^0.14.0",
4545
"mocha": "^10.2.0",
46-
"rollup": "^3.22.0",
47-
"terser": "^5.17.4"
46+
"rollup": "^3.26.3",
47+
"terser": "^5.19.2"
4848
}
4949
}

0 commit comments

Comments
 (0)