Skip to content

Commit

Permalink
Add missing denominator and make tests pass.
Browse files Browse the repository at this point in the history
  • Loading branch information
skytreader committed Apr 23, 2018
1 parent b2b9ba3 commit b41cdd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit b41cdd2

Please sign in to comment.