ScreenVideoBox beta
Interface of @v12-engine/render
export interface ScreenVideoBoxWhat is drawn of a video in a frame: the client's VideoPlaneFrame, pixels of the page from its top left
Members
border
border: number;A border inside the box, pixels, of borderColor
borderColor
borderColor: Rgb;The colour of the border
chroma
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
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
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
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
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
middle: readonly [number, number];The box's middle, pixels
opacity
opacity: number;How clear, 0 to 1
picture
picture: readonly [number, number, number, number];Where the picture is in the box: shares (x, y, width, height), as fit lays it
radius
radius: number;Round corners, pixels
size
size: readonly [number, number];Width and height of the box in pixels, before its transitions scale it
source
source: readonly [number, number, number, number];The part of the file shown, as shares (x, y, width, height) of it