From d1a309df129b504107dee2e87fb5985e903c3fb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20K=C3=BChnapfel?= Date: Thu, 23 Jun 2022 10:54:38 +0200 Subject: [PATCH] update usage example in README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e1bf2e4..8a15f1d 100644 --- a/README.md +++ b/README.md @@ -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 ``` \ No newline at end of file