ScreenClip beta
Interface of @v12-engine/client
export interface ScreenClip extends ClipA clip of the screen lane: what it leaves out, it does not touch
Members
aspect
aspect?: number;The picture in a ratio, centred, bars wherever they are needed, the HUD inside
barColor
barColor?: string;The bars' colour and edge while the clip has bars
barSoft
barSoft?: number;How softly the bars' edge fades; sharp when left out
blend
blend?: OverlayBlend;How the overlay mixes with the picture under it (OverlayBlend)
blur
blur?: number;The picture blurred by so many pixels
crop
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
fade?: number;The screen faded to fadeColor (black when left out), so far (1 all colour)
fadeColor
fadeColor?: string;The colour (CSS) the screen fades to; black when left out
flash
flash?: string;A flash of a colour at the clip's start, clearing over its for
in
in?: number;Seconds it comes in over, and goes out over: 0.4 each when left out
letterbox
letterbox?: number | true;Bars above and below: a picture's ratio (2.39), or true for the look's share
out
out?: number;Seconds it goes out over; 0.4 when left out
overlay
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
overlayColor?: string;A colour (CSS) laid over everything, the same as giving a colour to overlay
overlayOpacity
overlayOpacity?: number;How opaque the overlay is, 0..1; 1 when left out
pillarbox
pillarbox?: number | true;Bars at the sides, the same way
stretch
stretch?: {
x: number;
y: number;
};The picture stretched about its centre
tint
tint?: number;The picture coloured by tintColor, so far
tintColor
tintColor?: string;The colour (CSS) the picture is tinted with
vignette
vignette?: number;The corners darkened, so much; vignetteSoft how softly (0.5 when left out)
vignetteSoft
vignetteSoft?: number;How softly the corners fade, 0..1; 0.5 when left out