trailProfile function
Cross-section of a wet trail at `across`, from -1 (one edge) to 1 (the other): its opacity and how light it is.
import { trailProfile } from '@dioramajs/particles/drops'. Symmetric about the middle, where the drop ran: a thin glossy line along the centre, a faint film, and darker edges where the water film ends.
function trailProfile(across: number): { alpha: number; light: number }Parameters
| Name | Type | Description |
|---|---|---|
across | number |
Defined in packages/particles/src/drops.ts.