Commit bd9a79f1 authored by Ture Pålsson's avatar Ture Pålsson
Browse files

Fix detection of dark/light colours

parent cc0971b6
......@@ -4,7 +4,7 @@ def ff(n):
return [0x00, 0x5f, 0x87, 0xaf, 0xd7, 0xff][n]
def light(r, g, b):
return (21 * r + .71 * g + .07 * b >= 128)
return (.21 * r + .71 * g + .07 * b >= 128)
def c():
columns = 6
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment