Genauere Berechnung der Oberen Werte
Änderung des Return-Wertes auf 255 - dem Delta zwischen Übersteuerung und dem Maximialwert zur besseren Farbdarstellung
This commit is contained in:
parent
1cc63c6a30
commit
fd0161e320
@ -14,7 +14,7 @@ def reverseGammaCorrection(v_reverse):
|
|||||||
return round(255 * (12.92 * abs(v_reverse)))
|
return round(255 * (12.92 * abs(v_reverse)))
|
||||||
elif abs(v_reverse) > 0.0031308:
|
elif abs(v_reverse) > 0.0031308:
|
||||||
if (round(255 * (1.055 * abs(v_reverse) ** 0.41666 - 0.055))) > 255:
|
if (round(255 * (1.055 * abs(v_reverse) ** 0.41666 - 0.055))) > 255:
|
||||||
return 255
|
return 255 - (round(255 * (1.055 * abs(v_reverse) ** 0.41666 - 0.055))- 255)
|
||||||
else:
|
else:
|
||||||
return round(255 * (1.055 * abs(v_reverse) ** 0.41666 - 0.055))
|
return round(255 * (1.055 * abs(v_reverse) ** 0.41666 - 0.055))
|
||||||
|
|
||||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user