Sync

Qualified name: algan.animation\_timeline.animation\_contexts.Sync

class Sync(runtime=None, **kwargs)[source]

Bases: Lag

Play 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 Lag with ratio=0 .

Examples

with Sync():  # both happen over one second
    square.rotate(90, OUT)
    square.color = BLUE

Methods

Attributes

animation_manager

child_contexts

combine_easing

composed_easing

current_time

Where the authoring cursor sits within this context, in seconds.

easing

end_time

The furthest time anything recorded in this context reaches, in seconds.

equalize_runtimes

finished

kwargs

lag_ratio

new_animation

new_mobs

prev_context

priority_level

record_attr_modifications

record_funcs

runtime

runtime_per_part

spawn_at_end