Skip to content

SyncMetric

Module: terminaltexteffects.engine.animation

Bases: Enum

Enum for specifying the type of sync to use for a Scene.

Attributes:

Name Type Description
DISTANCE int

Sync to a Waypoint based on distance from the Waypoint

STEP int

Sync to a Waypoint based on the number of steps taken towards the Waypoint

Source code in terminaltexteffects/engine/animation.py
class SyncMetric(Enum):
    """Enum for specifying the type of sync to use for a Scene.

    Attributes:
        DISTANCE (int): Sync to a Waypoint based on distance from the Waypoint
        STEP (int): Sync to a Waypoint based on the number of steps taken towards the Waypoint
    """

    DISTANCE = auto()
    STEP = auto()