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:
@@ -14,7 +14,7 @@ def reverseGammaCorrection(v_reverse):
|
||||
return round(255 * (12.92 * abs(v_reverse)))
|
||||
elif abs(v_reverse) > 0.0031308:
|
||||
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:
|
||||
return round(255 * (1.055 * abs(v_reverse) ** 0.41666 - 0.055))
|
||||
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user