From: Barry Warsaw Date: Mon, 28 Sep 1998 22:52:02 +0000 (+0000) Subject: Fixed the brightness calculation X-Git-Tag: v1.5.2a2~230 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=26f4b5dfe4f357d662a015f0c89a925fb0fe3465;p=python Fixed the brightness calculation --- diff --git a/Tools/pynche/StripViewer.py b/Tools/pynche/StripViewer.py index 3997393df0..5c38c0e911 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'