Skip to content

anim-format (runtime format) / facing

Function: facing() ​

ts
function facing(A): number;

0..1 how much a card faces the viewer (1 = square on, 0 = edge-on): its plane's normal against the view axis

Parameters ​

ParameterType
Areadonly number[]

Returns ​

number

HereSplash — 2D animation for the web