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/liquid

Exports of @dioramajs/media/liquid.

View as Markdown
On this page
import { default, Field } from '@dioramajs/media/liquid'

Classes

FieldA displacement field over the box: `size` × `size` cells, each a vector in box px (y up) that the pointer pushes along its path. Every step it decays, spreads to the neighbours and drifts along itself. Deterministic: the same strokes and steps give the same field.

Constants

defaultThe pointer leaves a fluid trail on a photo: the picture refracts, smears or splits into its colours along the path and settles back. A finger draws while it is pressed.