Skip to content

ScreenBars beta ​

Interface of @v12-engine/client

ts
export interface ScreenBars

The bars of the frame: a letterbox (above and below), a pillarbox (at the sides), or an aspect (whichever makes a picture of the ratio, the HUD laid out inside it); ratio is the picture's width over its height (2.39 the widest of films, 1.85, 16/9, 4/3), or true for bars of a set share (11% each); amount is how far in they are, 0 to 1: what a cinematic eases

Members ​

amount ​

ts
amount: number;

How far the bars are in, 0 (out) to 1 (all the way): what a cinematic eases

kind ​

ts
kind: 'none' | 'letterbox' | 'pillarbox' | 'aspect';

What the bars are: none, a letterbox, a pillarbox or an aspect frame

ratio ​

ts
ratio: number | true;

The picture's width over its height (2.39, 1.85, 16/9), or true for bars of a set share (11% each)