coldtype.time.loop.Loop

class Loop(duration, segment_count, transition_length, 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

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