Sync¶
Qualified name: algan.animation\_timeline.animation\_contexts.Sync
- class Sync(runtime=None, **kwargs)[source]¶
Bases:
LagPlay the block’s animations all at the same time.
Everything inside starts together, so the block takes as long as the longest animation component animation rather than the sum of them.
- Parameters:
runtime (float | None) – Passed to
AnimationContext.**kwargs – Passed to
Lagwithratio=0.
Examples
with Sync(): # both happen over one second square.rotate(90, OUT) square.color = BLUE
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