low lightning flashing reduction

This commit is contained in:
Lucca Ketterer 2021-04-26 23:14:22 +02:00
parent 74b5f83998
commit 180d4ebe13

View File

@ -114,6 +114,8 @@ def ups():
def color_correction(r,g,b): def color_correction(r,g,b):
amp = [1,1,0.8] amp = [1,1,0.8]
if r < 5 and g < 5 and b < 5:
return 0,0,0
return int(r*amp[0]), int(g*amp[1]), int(b*amp[2]) return int(r*amp[0]), int(g*amp[1]), int(b*amp[2])
def ambient_light(): def ambient_light():