Skip to main content

Module text_shimmer

Module text_shimmer 

Source
Expand description

EXP-1324: the Text shimmer colours (catalog/style.json textShimmer), a port of src/text-shimmer.ts; fixtures/text-shimmer.json locks it. A painter fills a shimmering text’s glyphs with the gradient the style’s $comment describes, from these colours; reduced motion = plain text.

Structs§

ShimmerSpec
TextShimmer
The colours (#rrggbb[aa]) and numbers of one shimmering text.

Statics§

SHIMMER

Functions§

text_shimmer
The shimmer colours for a text colour; dark = the surface’s dark mode. An unparsable colour shimmers from black.