bounce
Functionbounce(
s1: State,
s2: State,
t_start: float,
t_end: float,
hold_duration: Optional[float] = 0,
num_transitions: int = 2,
easing: Optional[Dict[str, Callable[[float], float]]] = None
) -> List[KeyState]
Bounce between two states.
Parameters
-
s1 - First state (start and end)
-
s2 - Second state (peaks)
-
t_start - Start time
-
t_end - End time
-
hold_duration - Optional[float]: how long to hold the state in the in between stages
-
num_transitions - Number of transitions (3 = s1->s2->s1->s2) (4 = s1->s2->s1->s2->s1)
-
easing - Optional easing dict for transitions
Returns
List of KeyState objects