heartbeatPulse
A double heartbeat, 0 to 1, driven by the layer's clock.
heartbeatPulse(animTime: number): number
Import effects from shaders/std and use effects.edgeGlow.heartbeatPulse.
Compute it once per pixel and hand the same value to edgeGlowBand and every orbitSpotsAccum call, so the band's smoke and the spots beat together.
Parameters
| Name | Type | Notes |
|---|---|---|
args | [animTime: number] |
Example
const beat = asLocal(call(heartbeatPulse, 'heartbeatPulse', [animatedTime(params)]), 'beat')
See also
edgeGlowBand— The glowing band around the shape's edge, with drifting smoke, plus the angle around the shape.orbitSpotsAccum— The spots of one color orbiting the band, as coverage at this pixel.