Skip to content

anim-format (runtime format) / focalLength

Function: focalLength() ​

ts
function focalLength(fov, width): number;

focal length (px from the eye to the z = 0 plane) of a field of view across width (the stage width, Flash)

Parameters ​

ParameterType
fovnumber
widthnumber

Returns ​

number

HereSplash — 2D animation for the web