Appearance
anim-format (runtime format) / playheadBetween
Function: playheadBetween()
ts
function playheadBetween(pos, shown?):
| {
t: number;
to: number;
}
| null;The in-between to draw for a position, seen from the frame shown: to = the neighbouring frame it leans toward, t (0..1) how far; null = exactly on the shown frame. shown defaults to the position's own shown frame; |pos - shown| over 1 is capped at the neighbour.
Parameters
| Parameter | Type |
|---|---|
pos | number |
shown? | number |
Returns
| { t: number; to: number; } | null