pulseAt function
Where the two pulse beams are `clock` s into the loop: the distance each has run from the top middle, px, and their opacity.
import { pulseAt } from '@dioramajs/blocks/beam'. They run half the border, meet at the bottom and rest.
function pulseAt(
clock: number,
speed: number,
around: number,
): { envelope: number; head: number }Parameters
| Name | Type | Description |
|---|---|---|
clock | number | |
speed | number | |
around | number |
Defined in packages/blocks/src/beam.ts.