Skip to content

anim-format (runtime format) / cleanPosition

Function: cleanPosition() ​

ts
function cleanPosition(pos): number;

a position with float drift removed (whole numbers stay whole)

Parameters ​

ParameterType
posnumber

Returns ​

number

HereSplash — 2D animation for the web