ScreenState beta
Interface of @v12-engine/client
export interface ScreenStateEverything 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
barColor: Rgb;The bars' colour, and how soft their edge is (a share of the frame's height, 0 for a hard edge)
bars
bars: ScreenBars;The bars of the frame
barSoft
barSoft: number;How soft the bars' edge is, as a share of the frame's height; 0 is hard
blur
blur: number;The picture blurred by so many pixels; 0 sharp
crop
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
fade: {
color: Rgb;
opacity: number;
};The screen faded to a colour, opacity of the way (1 is all colour)
overlay
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
stretch: {
x: number;
y: number;
};The picture stretched about its centre: 1, 1 as it is; 1.2, 1 wider
tint
tint: {
color: Rgb;
amount: number;
};The picture coloured, amount of the way
vignette
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)