# @dioramajs/text/extrude

Exports of @dioramajs/text/extrude.

## Functions and values

- [bake](/docs/api/text-extrude/bake.md): Bakes the distance from the ink along `dir` (box px, y down) up to `reach` px: 0 at the ink, 255 at `reach` or with no ink behind. Doubling: each pass takes the smaller of a pixel and the pixel `s` back plus `s`, for s = 1, 2, 4…, so log2 of the reach in canvas draws.
- [default](/docs/api/text-extrude/default.md): A 3D headline: the letters get real depth, a lit block extruded from the glyphs with beveled faces and walls that darken toward the back, a stack of paper layers or a flat long shadow, seen in perspective and casting a soft shadow on the page. The block turns toward the pointer or with the scroll. The DOM text stays for screen readers, search and selection.
- [lamp](/docs/api/text-extrude/lamp.md): The light in the frame of a face turned up by `ax` and right by `ay`: y down, z to the viewer.
- [MAX_LAYERS](/docs/api/text-extrude/max-layers.md): Most paper layers.
- [padded](/docs/api/text-extrude/padded.md): The raster in a canvas with an empty margin, so its coarse mip levels end in empty texels.
- [perspectiveOf](/docs/api/text-extrude/perspective-of.md): Distance of the eye for the depth, px: a gentle perspective for a box of this size.
- [view](/docs/api/text-extrude/view.md): How a box of `width` x `height` px sees its depth when its face is turned up by `ax` and right by `ay` (radians): the point the depth vanishes toward, in box px (y down), and the share of the way there a point at full depth goes. At rest the back trails `depth` px away from the light at the box centre; turning the face toward a point moves the back away from it.
