summaryrefslogtreecommitdiffstats
path: root/Tools/pynche
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>1998-09-28 22:52:02 (GMT)
committerBarry Warsaw <barry@python.org>1998-09-28 22:52:02 (GMT)
commit26f4b5dfe4f357d662a015f0c89a925fb0fe3465 (patch)
tree690c341c8c8c6e968a2733b1ed641edcdb07ee95 /Tools/pynche
parent0dc9c92b10a2b828b40663ad4701a819a32842a6 (diff)
downloadcpython-26f4b5dfe4f357d662a015f0c89a925fb0fe3465.zip
cpython-26f4b5dfe4f357d662a015f0c89a925fb0fe3465.tar.gz
cpython-26f4b5dfe4f357d662a015f0c89a925fb0fe3465.tar.bz2
Fixed the brightness calculation
Diffstat (limited to 'Tools/pynche')
-rw-r--r--Tools/pynche/StripViewer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/pynche/StripViewer.py b/Tools/pynche/StripViewer.py
index 3997393..5c38c0e 100644
--- a/Tools/pynche/StripViewer.py
+++ b/Tools/pynche/StripViewer.py
@@ -231,7 +231,7 @@ class StripWidget:
self.__leftarrow.move_to(-100)
# and set the chip's outline
brightness = ColorDB.triplet_to_brightness(rgbtuple)
- if brightness <= 0.5:
+ if brightness <= 128:
outline = 'white'
else:
outline = 'black'