From 26f4b5dfe4f357d662a015f0c89a925fb0fe3465 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Mon, 28 Sep 1998 22:52:02 +0000 Subject: [PATCH] Fixed the brightness calculation --- Tools/pynche/StripViewer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/pynche/StripViewer.py b/Tools/pynche/StripViewer.py index 3997393df0a..5c38c0e9113 100644 --- a/Tools/pynche/StripViewer.py +++ b/Tools/pynche/StripViewer.py @@ -231,7 +231,7 @@ def __trackarrow(self, chip, rgbtuple): 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'