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

Look interface

How a style melts and shines.

View as Markdown
import type { Look } from '@dioramajs/text/melt'

Lengths in em of the font size.

interface Look

Members

NameTypeDescription
readonly bulbnumber
readonly dripnumber

Length of the drips and the radius of their streams; bulb per stream radius.

readonly poolnumber

Thickness and reach of the pool at the foot of the letters (wax).

readonly radiusnumber

Radius of the round profile of the liquid's edge, and the span its slope is taken over.

readonly roundnumber
readonly sagnumber

Share of a letter's height its top sinks by at full melt.

readonly smoothnumber
readonly softnumber

Blur that rounds the corners of the liquid shape, and how far the letters take it.

readonly swellnumber

How much fatter the foot of a letter gets.

readonly widthnumber

Defined in packages/text/src/melt.ts.