Wipe class
Where the glass is wiped clear: `size` × `size` cells over the box, each 0 (fogged) to 1 (clear), y up.
import { Wipe } from '@dioramajs/media/frost'. A stroke clears a band along the pointer's path; each step the clear areas fog back over refog seconds. Deterministic: the same strokes and steps give the same mask.
class WipeMembers
| Name | Type | Description |
|---|---|---|
constructor | | |
active | boolean | Some cell is still fogging back. Default |
readonly clear | Float32Array | |
peak | number | Clearest cell, 0..1. Default |
readonly size | number | |
reset | | Fogs every cell at once. |
resized | | A copy of this mask at |
step | | Fogs back by |
stroke | | Clears the cells within |
write | | Writes the mask into the red channel of RGBA bytes. |
Defined in packages/media/src/wipe.ts.