Skip to content
Snippets Groups Projects
Commit 93dac299 authored by Ture Pålsson's avatar Ture Pålsson
Browse files

Fix wrong colour numbers

parent bd9a79f1
No related branches found
No related tags found
No related merge requests found
...@@ -12,9 +12,9 @@ def c(): ...@@ -12,9 +12,9 @@ def c():
for row in range(0, rows): for row in range(0, rows):
items = [] items = []
for col in range(0, columns): for col in range(0, columns):
c = col * rows + row
if False: if False:
c = col * rows + row
red = ff(c // 36) red = ff(c // 36)
green = ff((c // 6) % 6) green = ff((c // 6) % 6)
blue = ff(c % 6) blue = ff(c % 6)
...@@ -22,6 +22,7 @@ def c(): ...@@ -22,6 +22,7 @@ def c():
red = ff(row // 6) red = ff(row // 6)
green = ff(row % 6) green = ff(row % 6)
blue = ff(col) blue = ff(col)
c = 36 * (row // 6) + 6 * (row % 6) + col
fgcolor = (0, 0, 0) if light(red, green, blue) else (1, 1, 1) fgcolor = (0, 0, 0) if light(red, green, blue) else (1, 1, 1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment