Diorama

Made for a big screen.

This site is one 3D scene, built for a computer: a wide window and a mouse. Open dioramajs.dev on a desktop or a laptop to see it.This site is one 3D scene, built for a wide window. Make this one wider, or open dioramajs.dev on a larger screen.

GitHub

DioramaDocs

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.

View as Markdown
import { spectrum } from '@dioramajs/text/prism'

.

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

Parameters

NameTypeDescription
countnumber

Defined in packages/text/src/prism.ts.