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

puff function

Builds the puffed letters of a raster: a distance field over the raster's frame and a margin for the shadow, the round profile's radius from an inflated membrane, and the nearest letter.

View as Markdown
import { puff } from '@dioramajs/text/inflate'

.

function puff(layout: Raster, ratio: number, pause?: Pause): Promise<Puff>

Parameters

NameTypeDescription
layoutRaster
rationumber
pause?Pause

Default ....

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