Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Ture Pålsson
colour
Commits
93dac299
Commit
93dac299
authored
Jan 07, 2019
by
Ture Pålsson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix wrong colour numbers
parent
bd9a79f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
colours.py
colours.py
+2
-1
No files found.
colours.py
View file @
93dac299
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment