Lifespan

Qualified name: algan.animation\_timeline.timeline.Lifespan

class Lifespan[source]

Bases: object

The [spawn, despawn) interval of one mob on its Scene timeline.

start and end are zero-argument callables returning the spawn / despawn timestamp in seconds, or -1 when the mob has not (yet) spawned / despawned. They are stored as callables (TimelineEvent s) because animation contexts rescale timestamps retroactively, so the final value is only known at render time.

Lifespans are owned by the AnimationTimeline (AnimationTimeline.get_lifespan()), keyed by mob id.

Methods

Attributes

end

start