spectrum function
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.
import { spectrum } from '@dioramajs/text/prism'.
function spectrum(count: number): [number, number, number][]Parameters
| Name | Type | Description |
|---|---|---|
count | number |
Defined in packages/text/src/prism.ts.