diff options
author | Barry Warsaw <barry@python.org> | 1998-09-28 22:52:02 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 1998-09-28 22:52:02 (GMT) |
commit | 26f4b5dfe4f357d662a015f0c89a925fb0fe3465 (patch) | |
tree | 690c341c8c8c6e968a2733b1ed641edcdb07ee95 /Tools | |
parent | 0dc9c92b10a2b828b40663ad4701a819a32842a6 (diff) | |
download | cpython-26f4b5dfe4f357d662a015f0c89a925fb0fe3465.zip cpython-26f4b5dfe4f357d662a015f0c89a925fb0fe3465.tar.gz cpython-26f4b5dfe4f357d662a015f0c89a925fb0fe3465.tar.bz2 |
Fixed the brightness calculation
Diffstat (limited to 'Tools')
-rw-r--r-- | Tools/pynche/StripViewer.py | 2 |
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' |