1681-engine / index / wipeLevel
Function: wipeLevel() ​
ts
function wipeLevel(
progress,
position,
softness
): number;Defined in: src/transitions/ditherMask.ts:17
The dither level of one band of a wipe. progress 0–1 runs the wipe; position 0–1 is the band's centre along the direction of travel; softness (0–1) is how much of the screen the dithered edge spans. At progress 0 every band is empty, at 1 every band is solid, and in between the edge sweeps across with its gradient in dither steps.
Parameters ​
| Parameter | Type |
|---|---|
progress | number |
position | number |
softness | number |
Returns ​
number