Skip to content

ScreenVideoBox beta ​

Interface of @v12-engine/render

ts
export interface ScreenVideoBox

What is drawn of a video in a frame: the client's VideoPlaneFrame, pixels of the page from its top left

Members ​

border ​

ts
border: number;

A border inside the box, pixels, of borderColor

borderColor ​

ts
borderColor: Rgb;

The colour of the border

chroma ​

ts
chroma?: {
        color: Rgb;
        threshold: number;
        soft: number;
    };

The colour taken out, how far from it, over how much more it comes back; none when left out

color ​

ts
color: readonly number[];

The colour filters as one: each of red, green, blue made of the file's red, green, blue and a constant ([r, g, b, k] three times)

inset ​

ts
inset: readonly [number, number, number, number];

What a wipe leaves of the box: shares of it taken off its top, right, bottom and left

inverse ​

ts
inverse: readonly [number, number, number, number, number, number];

From a point of the screen (pixels from the box's middle) to where it is on the box as it was before its turn, its size and its transitions moved it: x' = a x + c y + e, y' = b x + d y + f, as [a, b, c, d, e, f]

iris ​

ts
iris: readonly [number, number, number];

An iris: its middle (shares of the box) and its reach (pixels); none where the reach is below 0

middle ​

ts
middle: readonly [number, number];

The box's middle, pixels

opacity ​

ts
opacity: number;

How clear, 0 to 1

picture ​

ts
picture: readonly [number, number, number, number];

Where the picture is in the box: shares (x, y, width, height), as fit lays it

radius ​

ts
radius: number;

Round corners, pixels

size ​

ts
size: readonly [number, number];

Width and height of the box in pixels, before its transitions scale it

source ​

ts
source: readonly [number, number, number, number];

The part of the file shown, as shares (x, y, width, height) of it