Skip to content

ScreenFrame beta ​

Interface of @v12-engine/render

ts
export interface ScreenFrame

What the frame draws over the picture, as numbers (the client's ScreenState, its bars already shares by side)

Members ​

barColour ​

ts
barColour: Rgb;

The bars' colour

bars ​

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

The bars' shares of the frame: top, bottom, left, right

barSoft ​

ts
barSoft: number;

How soft the bars' edge is, as a share of the frame's height

crop ​

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

The part of the picture that fills the frame: x, y, width, height as shares from its top left

fade ​

ts
fade: {
        colour: Rgb;
        opacity: number;
    };

A fade to a colour over all of it, as much as opacity (0: none)

overlay ​

ts
overlay: {
        colour: Rgb;
        opacity: number;
        blend: number;
        picture?: ScreenPicture;
    };

A colour, or a picture coloured by it, over the picture: 0 over it, 1 multiplied, 2 screened, 3 added

stretch ​

ts
stretch: readonly [number, number];

The picture stretched about its centre

tint ​

ts
tint: {
        colour: Rgb;
        amount: number;
    };

A colour the picture leans to, as much as amount (0: none)

vignette ​

ts
vignette: {
        amount: number;
        softness: number;
    };

How dark the corners are (0: none), and how soft the darkening comes in