SKActionTimingFunction

Type Alias SKActionTimingFunction 

Source
pub type SKActionTimingFunction = *mut DynBlock<dyn Fn(c_float) -> c_float>;
Available on crate features SKAction and block2 only.
Expand description

A custom timing function for SKActions. Input time will be linear 0.0-1.0 over the duration of the action. Return values must be 0.0-1.0 and increasing and the function must return 1.0 when the input time reaches 1.0.

See also Apple’s documentation