Skip to content

TransitionOptions beta ​

Interface of @v12-engine/client

ts
export interface TransitionOptions

How a transition is played: how long (0.6 s when left out), along which curve, through which colour (a fade, a flash), which way (a wipe's angle in radians, 0 from left to right; a push's or a slide's direction), where on the screen (an iris's centre: a point of the map or a unit, found as it plays), the shape of an iris, how soft its edge is, and whether it goes the other way (an iris closing on the point, rather than opening from it)

Members ​

angle ​

ts
angle?: number;

Angle in radians a wipe moves along, 0 from left to right

at ​

ts
at?: Vec2 | {
        unit: string;
    } | {
        entity: number;
    };

Centre of an iris: a map point, a unit by name or an entity by id, found as the transition plays

color ​

ts
color?: ScreenColor;

The colour a fade or flash goes through

direction ​

ts
direction?: 'left' | 'right' | 'up' | 'down';

Which way a push or slide moves

ease ​

ts
ease?: Ease | string;

The curve of the transition's progress over its seconds: an Ease or its name

old ​

ts
old?: CinematicPose | ((seconds: number) => CinematicPose);

For live: the old shot, a pose, or where it is so many seconds into the transition (it goes on moving). The pose the camera had as the transition began when left out (a camera key's goes on as it was moving)

reverse ​

ts
reverse?: boolean;

Whether it runs the other way, as an iris closing on its point instead of opening from it

seconds ​

ts
seconds?: number;

Seconds the transition takes; 0.6 when left out and its def says nothing

shape ​

ts
shape?: 'circle' | 'diamond' | 'star';

The shape of an iris

soft ​

ts
soft?: number;

How soft the edge of a wipe or iris is, as a share of the picture

source ​

ts
source?: 'kept' | 'live';

Where the old picture comes from: the last frame kept (kept, when left out: one copy, for a cut from a shot that stands still at its end), or the old shot's camera still drawing for the transition's length (live: a dissolve between two moving shots, at the price of a second render of the scene a frame)