CutPicture beta
Class of @v12-engine/client
export declare class CutPictureThe picture as a script drives it (cut.picture): see the top of this file. Each call eases from where the picture is to what is asked over seconds on the cut's clock, and settles when it is there
Members
constructor
constructor(cut: Cut);Constructs a new instance of the CutPicture class
aberration
aberration(amount: number, seconds?: number): Promise<void>;The colours split at the picture's edges, as a cheap lens does: how much (0 none, 1 a lot)
bloom
bloom(amount: number, seconds?: number, options?: {
threshold?: number;
spread?: number;
}): Promise<void>;Light bleeding round what is bright: how much (0 none), above what brightness (0.9), how far (1)
focus
focus(on: string | number | Vec2 | {
entity: number;
} | null, options?: {
aperture?: number;
seconds?: number;
ease?: Ease | string;
}): Promise<void>;Depth of field: the picture sharp on a unit (a name or a ref, or { entity }: found each frame as it moves), at a spot, or at a distance from the camera (a number), blurred before and behind it, the more for a smaller aperture (the f-stop: 1.4 when left out). Null lets go of it. Its aperture eases over seconds; where it is sharp moves at once
grade
grade(look: Pick<MapPictureLook, 'exposure' | 'contrast' | 'saturation' | 'tint' | 'tintAmount' | 'grade' | 'gradeAmount' | 'tone'>, seconds?: number, ease?: Ease | string): Promise<void>;The grade: exposure, contrast, saturation, a tint and how much, a look-up table (grade, a path of the game's files) and how much, the tone mapping. What it does not name stays as it is
grain
grain(amount: number, seconds?: number): Promise<void>;Film grain: how much (0 none, 1 a lot)
reset
reset(seconds?: number): Promise<void>;The picture as the game and the map have it again, over seconds (at once when 0)
sharpen
sharpen(amount: number, seconds?: number): Promise<void>;The picture's edges made crisper: 0 none, 1 a lot
state
get state(): CinematicPicture;The cinematic's say over the picture now
vignette
vignette(amount: number, seconds?: number, color?: [number, number, number]): Promise<void>;The picture's edges darker: how much (0 none, 1 a lot), in what colour
warnIfOff
warnIfOff(): void;Said once a cinematic: the picture is not finished here, so what it asks of it does not show