Fix 'fade'

This commit is contained in:
Ruben van de Ven 2019-02-06 10:07:04 +01:00
parent 895e12c034
commit 5212e3aab2

View file

@ -570,12 +570,13 @@ while True:
diffT = min(1, t - lastRunTime)
lastRunTime = t
# animDuration = 1
# factor = animDuration
metrics = metrics + newMetrics*diffT
newMetrics *= (1-diffT)
print('MAXES', np.max(metrics), np.max(newMetrics), diffT)
print('MAXES', np.max(metrics), np.max(newMetrics), diffT, t - lastRunTime)
# smooth impact of first hits by having at least 0.05
normalisedMetrics = metrics / (max(255*7 ,np.max(metrics)))