# @dioramajs/text/prism

Exports of @dioramajs/text/prism.

## Functions and values

- [default](/docs/api/text-prism/default.md): Letters become cut crystal standing off the page: clear bevelled glass with bright inner edges, that splits the light of a lamp into rainbows cast on the page behind and beside it. The lamp follows the pointer, sweeps with the scroll, orbits on a loop or passes once in view. The text stays in the DOM, hidden behind the copy.
- [lamp](/docs/api/text-prism/lamp.md): The light from the box center in px (y down) and its height: at `angle` (a CSS angle, 0 above, 90 right) about the size of the box away, drifting with the box's place in the viewport.
- [rainbow](/docs/api/text-prism/rainbow.md): Saturated linear RGB hues from red to violet, `count` of them, for light split into bands.
- [reach](/docs/api/text-prism/reach.md): The pointer's offset from the box center, eased so a far pointer stays a light nearby.
- [spectrum](/docs/api/text-prism/spectrum.md): Linear RGB weights of `count` wavelength samples from red to violet: each channel sums to 1, so the samples landing on one spot add up to white and pull apart into a rainbow.
