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

trailProfile function

Cross-section of a wet trail at `across`, from -1 (one edge) to 1 (the other): its opacity and how light it is.

View as Markdown
import { trailProfile } from '@dioramajs/particles/drops'

. Symmetric about the middle, where the drop ran: a thin glossy line along the centre, a faint film, and darker edges where the water film ends.

function trailProfile(across: number): { alpha: number; light: number }

Parameters

NameTypeDescription
acrossnumber

Defined in packages/particles/src/drops.ts.