Skip to content

Commit

Permalink
Fix tween() default start
Browse files Browse the repository at this point in the history
Take a copy instead of a reference to _values, so that start isn't changing
through the loop.
  • Loading branch information
rowlap committed Oct 31, 2019
1 parent a7d1514 commit a338e40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/piglow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down

0 comments on commit a338e40

Please sign in to comment.