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

Fix wrong colour numbers

parent bd9a79f1
......@@ -12,9 +12,9 @@ def c():
for row in range(0, rows):
items = []
for col in range(0, columns):
c = col * rows + row
if False:
c = col * rows + row
red = ff(c // 36)
green = ff((c // 6) % 6)
blue = ff(c % 6)
......@@ -22,6 +22,7 @@ def c():
red = ff(row // 6)
green = ff(row % 6)
blue = ff(col)
c = 36 * (row // 6) + 6 * (row % 6) + col
fgcolor = (0, 0, 0) if light(red, green, blue) else (1, 1, 1)
......
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