Skip to content

Commit

Permalink
- Updated README.
Browse files Browse the repository at this point in the history
- Updated NPM.
  • Loading branch information
elusivecodes committed Jul 22, 2023
1 parent f1ad686 commit a5ce661
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 61 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -442,10 +442,10 @@ Find an optimally contrasting color for another color.
- `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*.

```javascript
const contrastColor = Color.findContrast(color1, color2, minContrast, stepSize);
const contrastColor = Color.findContrast(color1, color2, options);
```

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

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.

Expand Down
2 changes: 1 addition & 1 deletion dist/frost-color.min.js.map

Large diffs are not rendered by default.

106 changes: 52 additions & 54 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fr0st/color",
"version": "4.1.0",
"version": "4.1.1",
"description": "FrostColor is a free, open-source color manipulation library for JavaScript.",
"keywords": [
"color",
Expand Down Expand Up @@ -40,10 +40,10 @@
"license": "MIT",
"private": false,
"devDependencies": {
"eslint": "^8.41.0",
"eslint": "^8.45.0",
"eslint-config-google": "^0.14.0",
"mocha": "^10.2.0",
"rollup": "^3.22.0",
"terser": "^5.17.4"
"rollup": "^3.26.3",
"terser": "^5.19.2"
}
}

0 comments on commit a5ce661

Please sign in to comment.