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

field function

Pins on a grid over a `width` by `height` box, a hex grid when `hex`.

View as Markdown
import { field } from '@dioramajs/text/pins'

Each stands out by a smooth step of the distance to the glyph edge, so the letters rise as plateaus whose edges ramp over a pitch or so. With a halo only the pins that close to the glyphs are kept, fewer and fewer toward its edge, so the field takes the shape of the word. The pitch widens until the pins fit max. The wave reaches them left to right and a little top down.

function field(
  layout: Raster,
  width: number,
  height: number,
  options: FieldOptions,
): Field

Parameters

NameTypeDescription
layoutRaster
widthnumber
heightnumber
optionsFieldOptions

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