Fixed the brightness calculation

This commit is contained in:
Barry Warsaw 1998-09-28 22:52:02 +00:00
parent 0dc9c92b10
commit 26f4b5dfe4
1 changed files with 1 additions and 1 deletions

View File

@ -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'