opacity function
How much of a drop shows: whole while it runs or grows, then fading over its last `FADE`; with a `lifetime`, also fading over its last third of it, running or not.
import { opacity } from '@dioramajs/particles/drops'.
function opacity(drop: Drop, lifetime?: number): numberParameters
| Name | Type | Description |
|---|---|---|
drop | Drop | |
lifetime? | number | Default |
Defined in packages/particles/src/drops.ts.