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

default const

A video shot on a green or blue screen, composited over the page with the screen keyed out: a "transparent" product or presenter video in every browser, from one ordinary MP4 or WebM.

View as Markdown
import { default } from '@dioramajs/media/chroma'

. Keys by the distance of each pixel's chroma over luma from the screen colour, takes the key's hue out of the edges (spill) and averages the key over a few taps (blur). With auto the key is read from the frame's top corners every frame. The <video> stays the source of truth: the site plays and pauses it; the copy draws its keyed frames while it plays and its keyed poster before it does.

const default: Effect<Params>

Defined in packages/media/src/chroma.ts.