# Voxels

interface in `@dioramajs/text/voxel`

```ts
import type { Voxels } from '@dioramajs/text/voxel'
```

Cubes on a grid over the glyphs of a raster.

```ts
interface Voxels
```

## Members

| Name | Type | Description |
| --- | --- | --- |
| `at` | `Float32Array` | Per cube: centre x, y in box px (y down), width in cells, and its place in the build wave, em. |
| `cell` | `number` | Grid step in box px: `cell`, or wider to fit the cap. |
| `color` | `Float32Array` | Per cube: linear r, g, b of the text there, and a random 0..1. |
| `count` | `number` |  |
| `em` | `number` | Median font size, px: the unit of the wave. |
| `extra` | `number` | Widest wave of the build past a cube's own column, em: rows and lines. |
| `from` | `Float32Array` | Per cube: where it starts as a share of `drop` (box px axes, z toward the viewer), a random 0..1. |
| `left` | `number` | Left edge of the cubes, box px: where the wave starts. |
| `near` | `Float32Array` | Per cube: share of the cells beside it that hold cubes, left, right, above, below. |
| `spin` | `Float32Array` | Per cube: a unit axis it tumbles around and the angle it starts turned by, radians. |
| `wave` | `number` | The wave of the right-most column, em. |

Defined in [packages/text/src/voxel.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/text/src/voxel.ts#L116).
