Update image_nodes.py

This commit is contained in:
kijai 2025-07-14 15:27:53 +03:00
parent 4549812bcc
commit f20cb4c108

View File

@ -1285,9 +1285,9 @@ class CrossFadeImages:
return 3 * t * t - 2 * t * t * t return 3 * t * t - 2 * t * t * t
def bounce(t): def bounce(t):
if t < 0.5: if t < 0.5:
return self.ease_out(t * 2) * 0.5 return ease_out(t * 2) * 0.5
else: else:
return self.ease_in((t - 0.5) * 2) * 0.5 + 0.5 return ease_in((t - 0.5) * 2) * 0.5 + 0.5
def elastic(t): def elastic(t):
return math.sin(13 * math.pi / 2 * t) * math.pow(2, 10 * (t - 1)) return math.sin(13 * math.pi / 2 * t) * math.pow(2, 10 * (t - 1))
def glitchy(t): def glitchy(t):