Skip to content

ScreenClip beta ​

Interface of @v12-engine/client

ts
export interface ScreenClip extends Clip

A clip of the screen lane: what it leaves out, it does not touch

Members ​

aspect ​

ts
aspect?: number;

The picture in a ratio, centred, bars wherever they are needed, the HUD inside

barColor ​

ts
barColor?: string;

The bars' colour and edge while the clip has bars

barSoft ​

ts
barSoft?: number;

How softly the bars' edge fades; sharp when left out

blend ​

ts
blend?: OverlayBlend;

How the overlay mixes with the picture under it (OverlayBlend)

blur ​

ts
blur?: number;

The picture blurred by so many pixels

crop ​

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

A part of the picture filling the frame: shares of its width and height from its top left

fade ​

ts
fade?: number;

The screen faded to fadeColor (black when left out), so far (1 all colour)

fadeColor ​

ts
fadeColor?: string;

The colour (CSS) the screen fades to; black when left out

flash ​

ts
flash?: string;

A flash of a colour at the clip's start, clearing over its for

in ​

ts
in?: number;

Seconds it comes in over, and goes out over: 0.4 each when left out

letterbox ​

ts
letterbox?: number | true;

Bars above and below: a picture's ratio (2.39), or true for the look's share

out ​

ts
out?: number;

Seconds it goes out over; 0.4 when left out

overlay ​

ts
overlay?: string;

A colour (CSS) or a picture (a path of the game's textures) laid over everything, at overlayOpacity (1 when left out), blended

overlayColor ​

ts
overlayColor?: string;

A colour (CSS) laid over everything, the same as giving a colour to overlay

overlayOpacity ​

ts
overlayOpacity?: number;

How opaque the overlay is, 0..1; 1 when left out

pillarbox ​

ts
pillarbox?: number | true;

Bars at the sides, the same way

stretch ​

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

The picture stretched about its centre

tint ​

ts
tint?: number;

The picture coloured by tintColor, so far

tintColor ​

ts
tintColor?: string;

The colour (CSS) the picture is tinted with

vignette ​

ts
vignette?: number;

The corners darkened, so much; vignetteSoft how softly (0.5 when left out)

vignetteSoft ​

ts
vignetteSoft?: number;

How softly the corners fade, 0..1; 0.5 when left out