Skip to content

Commit 12ef02c

Browse files
committed
...
1 parent a3e1a48 commit 12ef02c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

adafruit_tcs34725.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,7 @@ def color_rgb_bytes(self):
141141

142142
"""Each color value is normalized to clear, to obtain int values between 0 and 255.
143143
A gamma correction of 2.5 is applied to each value as well, first dividing by 255,
144-
since gamma is applied to values between 0 and 1
145-
"""
144+
since gamma is applied to values between 0 and 1 """
146145
red = int(pow((int((r / clear) * 256) / 255), 2.5) * 255)
147146
green = int(pow((int((g / clear) * 256) / 255), 2.5) * 255)
148147
blue = int(pow((int((b / clear) * 256) / 255), 2.5) * 255)

0 commit comments

Comments
 (0)