Seq¶
Qualified name: algan.animation\_timeline.animation\_contexts.Seq
- class Seq(runtime=None, **kwargs)[source]¶
Bases:
LagPlay the block’s animations one after another.
Each animation starts as the previous one finishes, so the block lasts as long as all of them put together. This is what statements at the top level of a script already do; reach for
Seqwhen you need to give a run of animations a combined runtime, or to sequence inside aSync.- Parameters:
runtime (float | None) – Passed to
AnimationContext.**kwargs – Passed to
Lagwithlag_ratio=1.
Examples
with Seq(runtime=2): # three moves squeezed into two seconds square.move(RIGHT) square.move(UP) square.move(LEFT)
Methods
Attributes
animation_managerchild_contextscombine_easingcomposed_easingcurrent_timeWhere the authoring cursor sits within this context, in seconds.
easingend_timeThe furthest time anything recorded in this context reaches, in seconds.
equalize_runtimesfinishedkwargslag_rationew_animationnew_mobsprev_contextpriority_levelrecord_attr_modificationsrecord_funcsruntimeruntime_per_partspawn_at_end