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

@dioramajs/media/ambient

Exports of @dioramajs/media/ambient.

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

Constants

defaultA soft glow around a video or image in the colours of its frame, like YouTube's ambient mode. Colours are read on the CPU from a tiny copy of the frame, at most `fps` times a second while the video plays, and flow into each other. A video without a frame lights in its poster's colours, or not at all. As a `shadow` the light falls below the box instead, like a drop shadow in the picture's colours. The element itself stays DOM.