commit | 26f4b5dfe4f357d662a015f0c89a925fb0fe3465 | [log] [tgz] |
---|---|---|
author | Barry Warsaw <barry@python.org> | Mon Sep 28 22:52:02 1998 +0000 |
committer | Barry Warsaw <barry@python.org> | Mon Sep 28 22:52:02 1998 +0000 |
tree | 690c341c8c8c6e968a2733b1ed641edcdb07ee95 | |
parent | 0dc9c92b10a2b828b40663ad4701a819a32842a6 [diff] [blame] |
Fixed the brightness calculation
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 @@ 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'