coldtype.time.loop.Loop¶
-
class
Loop
(duration, transition_length, states, loop=1, fps=30, storyboard=[0])¶ Construct for quickly developing animations based on loop
Can be used as a
timeline=
for an@animation
-
current_phase
(i) → coldtype.time.loop.LoopPhase¶ Get current phase of the Loop as a
LoopPhase
-
current_state
(i, e='eeio') → coldtype.time.loop.LoopPhase¶ Get current state of the Loop as a dict (provided states were passed to init)
-
-
class
LoopPhase
(is_transition: bool, i: int, timeable: coldtype.time.timeable.Timeable)¶ Clip-like representation of a segment of a Loop, most likely retrieved from
current_phase()
Standard
Timeable
available as.t
.is_transition
indicates if phase represents a transition
-
calc_state
(states, e='eeio')¶ Calculate progress of the loop phase, based on an easing fuction,
e
e=
takes a mnemonic as enumerated incoldtype.time.easing.ease()