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

strips function

The cloth of a style.

View as Markdown
import { strips } from '@dioramajs/text/ribbon'

A tinted flag or silk is the element's box; a tinted ribbon spans the box and splits its height between the lines. Without a tint the cloth is the ink with pad px around it: the whole text for a flag or silk, each line on its own for a ribbon.

function strips(
  r: Pick<Raster, 'quads'>,
  style: Style,
  box: { readonly height: number; readonly width: number },
  tinted: boolean,
  pad: number,
): Strip[]

Parameters

NameTypeDescription
rPick<Raster, 'quads'>
styleStyle
box{ readonly height: number; readonly width: number }
tintedboolean
padnumber

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