Skip to content

Commit

Permalink
update usage example in README
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Kühnapfel committed Jun 23, 2022
1 parent ce5e4b2 commit d1a309d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ const color = new Color('#ff6f61');
.forEach(element => element.style.color = color.hsl)

// function that checks whether the input color (string) is light
const isColorLight = (color: string): boolean => (new Color(color)).lightness > 0.5
const isColorLight = (color: string): boolean => (new Color(color)).luminance > 0.5
```

0 comments on commit d1a309d

Please sign in to comment.