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

ramp function

The colors as a ramp that comes back to the first one, mixed in OKLab: wraps without a seam.

View as Markdown
import { ramp } from '@dioramajs/text/shimmer'
function ramp(colors: readonly Color[], size?: number): DataTexture

Parameters

NameTypeDescription
colorsreadonly Color[]
size?number

Default 256.

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