# spectrum

function in `@dioramajs/text/prism`

```ts
import { spectrum } from '@dioramajs/text/prism'
```

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.

```ts
function spectrum(count: number): [number, number, number][]
```

| Parameter | Type | Description |
| --- | --- | --- |
| `count` | `number` |  |

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