Skip to content

breatheColor

breatheColor(base, hi, nowMs, spec): string

Defined in: src/anim/breathe.ts:60

Blend base toward hi by a breathing amount, returning an rgb(...) string. The result swings between base (trough) and mix(base, hi, amplitude) (crest) — never reaching full hi, so the motion is a gentle shimmer of the base colour rather than a colour change. Falls back to base if either endpoint can’t be parsed.

string

string

number

BreatheSpec

string