File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -139,9 +139,9 @@ def color_rgb_bytes(self):
139
139
if clear == 0 :
140
140
return (0 , 0 , 0 )
141
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 """
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
145
red = int (pow ((int ((r / clear ) * 256 ) / 255 ), 2.5 ) * 255 )
146
146
green = int (pow ((int ((g / clear ) * 256 ) / 255 ), 2.5 ) * 255 )
147
147
blue = int (pow ((int ((b / clear ) * 256 ) / 255 ), 2.5 ) * 255 )
You can’t perform that action at this time.
0 commit comments