We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3e1a48 commit 12ef02cCopy full SHA for 12ef02c
adafruit_tcs34725.py
@@ -141,8 +141,7 @@ def color_rgb_bytes(self):
141
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
145
- """
+ since gamma is applied to values between 0 and 1 """
146
red = int(pow((int((r / clear) * 256) / 255), 2.5) * 255)
147
green = int(pow((int((g / clear) * 256) / 255), 2.5) * 255)
148
blue = int(pow((int((b / clear) * 256) / 255), 2.5) * 255)
0 commit comments