From a338e40f16f8e84acfe752a76b820f63fa20a5ce Mon Sep 17 00:00:00 2001 From: rowlap Date: Thu, 31 Oct 2019 00:35:43 +0000 Subject: [PATCH] Fix tween() default start Take a copy instead of a reference to _values, so that start isn't changing through the loop. --- library/piglow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/piglow.py b/library/piglow.py index 5795aa4..74062db 100644 --- a/library/piglow.py +++ b/library/piglow.py @@ -248,7 +248,7 @@ def tween(duration, end, start=None): steps = int(duration / fps) if start is None: - start = _values + start = _values.copy() for x in range(steps): new = []