Skip to content

Commit c36f072

Browse files
committed
correct comment this time
1 parent 12ef02c commit c36f072

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

adafruit_tcs34725.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,9 @@ def color_rgb_bytes(self):
139139
if clear == 0:
140140
return (0, 0, 0)
141141

142-
"""Each color value is normalized to clear, to obtain int values between 0 and 255.
143-
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 """
142+
# Each color value is normalized to clear, to obtain int values between 0 and 255.
143+
# 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
145145
red = int(pow((int((r / clear) * 256) / 255), 2.5) * 255)
146146
green = int(pow((int((g / clear) * 256) / 255), 2.5) * 255)
147147
blue = int(pow((int((b / clear) * 256) / 255), 2.5) * 255)

0 commit comments

Comments
 (0)