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

LiveParams type

Writable params of handles and instances.

View as Markdown
import type { LiveParams } from '@dioramajs/diorama/effects'

Tuples read as live vectors you can tween by component. Write a whole tuple with set({ offset: [1, 2] }).

type LiveParams<P extends ParamSpec> = { [K in keyof P]: P[K] extends readonly number[] ? ParamVector : ParamValue<P[K]> }

Also exported from @dioramajs/effects.

Defined in packages/effects/src/types.ts.