Skip to content

ScreenState beta ​

Interface of @v12-engine/client

ts
export interface ScreenState

Everything the screen pass draws, as values: what a cinematic's screen lane samples, what cut.screen eases. Every field has a plain default (DEFAULT_SCREEN): the picture as it is

Members ​

barColor ​

ts
barColor: Rgb;

The bars' colour, and how soft their edge is (a share of the frame's height, 0 for a hard edge)

bars ​

ts
bars: ScreenBars;

The bars of the frame

barSoft ​

ts
barSoft: number;

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

blur ​

ts
blur: number;

The picture blurred by so many pixels; 0 sharp

crop ​

ts
crop: {
        x: number;
        y: number;
        w: number;
        h: number;
    };

The part of the picture that fills the frame: shares of its width and height from its top left. The whole when 0, 0, 1, 1

fade ​

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

The screen faded to a colour, opacity of the way (1 is all colour)

overlay ​

ts
overlay: {
        color: Rgb;
        texture?: string;
        opacity: number;
        blend: OverlayBlend;
    };

A colour, or a picture (a path of the game's textures) coloured by it, laid over the picture

stretch ​

ts
stretch: {
        x: number;
        y: number;
    };

The picture stretched about its centre: 1, 1 as it is; 1.2, 1 wider

tint ​

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

The picture coloured, amount of the way

vignette ​

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

The corners darkened: how much, and how soft the darkening comes in (0 a hard ring, 1 from the centre)