Browse Source

Genauere Berechnung der Oberen Werte

Änderung des Return-Wertes auf 255 - dem Delta zwischen Übersteuerung und dem Maximialwert zur besseren Farbdarstellung
master
Max Sponsel 3 years ago
parent
commit
fd0161e320
2 changed files with 1 additions and 1 deletions
  1. 1
    1
      Code/Farbaenderung.py
  2. BIN
      Code/__pycache__/Farbaenderung.cpython-38.pyc

+ 1
- 1
Code/Farbaenderung.py View File

@@ -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))

BIN
Code/__pycache__/Farbaenderung.cpython-38.pyc View File


Loading…
Cancel
Save