pick function
Where a turn shows: frame `pos` (fractional, unbounded with `loop`) of a row of `per` frames, as the two frames to mix and the share of the second.
import { pick } from '@dioramajs/media/spin'. Without loop the ends hold.
function pick(
pos: number,
per: number,
loop: boolean,
blend: boolean,
): [lo: number, hi: number, t: number]Parameters
| Name | Type | Description |
|---|---|---|
pos | number | |
per | number | |
loop | boolean | |
blend | boolean |
Defined in packages/media/src/spin.ts.