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
Timer-based component that gradually changes any numeric variable from a start value to a target value. Gets initialized when calling any of the set() functions that changes a numeric value.
Required varibles:
var: a reference to the variable that will be changed. To start, this is restricted to certain ints.
value: the value that the variable will transition to
interval: the amount of time until the transition is finished
When calling a set() function with these arguments, a new Transition object is allocated. It calculates the difference between the variable's current value and target value using the Maestro's refresh interval and stores it as step_. Transitions use internal Timers to store the interval. On update(), step_ gets added to var until the Timer fires. Once the Transition ends, its object gets deleted.
Example: cutting a Maestro's brightness in half over 5 seconds:
Timer-based component that gradually changes any numeric variable from a start value to a target value. Gets initialized when calling any of the
set()
functions that changes a numeric value.Required varibles:
var
: a reference to the variable that will be changed. To start, this is restricted to certain ints.value
: the value that the variable will transition tointerval
: the amount of time until the transition is finishedWhen calling a
set()
function with these arguments, a newTransition
object is allocated. It calculates the difference between the variable's current value and target value using the Maestro's refresh interval and stores it asstep_
. Transitions use internalTimers
to store the interval. Onupdate()
,step_
gets added tovar
until the Timer fires. Once theTransition
ends, its object gets deleted.Example: cutting a Maestro's brightness in half over 5 seconds:
The text was updated successfully, but these errors were encountered: