You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
start is an optional parameter to tween(), with the documented default of "the current state".
The problem is the implementation literally assigns a reference to the _values list, without taking a copy. As such, when _values changes during the loop, so does start as they refer to the same list.
start
is an optional parameter totween()
, with the documented default of "the current state".The problem is the implementation literally assigns a reference to the
_values
list, without taking a copy. As such, when_values
changes during the loop, so doesstart
as they refer to the same list.Link to code at time of writing.
Steps to reproduce:
What happened:
In the first loop, LEDs fade in/out much faster than the second loop.
What's expected:
Both loops give the same result.
The text was updated successfully, but these errors were encountered: