From b41cdd2e702a30b2c3791fe8473cc346f5beb3ba Mon Sep 17 00:00:00 2001 From: Chad Estioco Date: Mon, 23 Apr 2018 21:25:52 +0800 Subject: [PATCH] Add missing denominator and make tests pass. --- components/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/core.py b/components/core.py index e507519..66ea95a 100644 --- a/components/core.py +++ b/components/core.py @@ -68,7 +68,7 @@ def is_dark(color): 0.2989 * color[0] + 0.5870 * color[1] + 0.1140 * color[2] - ) + ) / 255 return darkness >= 0.5 class GameConfig(Publisher):