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

cut function

Cuts the panel over `lines` (and `also`, the lines of the second text): `slats` strips per line, or columns and square tiles of a like size.

View as Markdown
import { cut } from '@dioramajs/text/blinds'

.

function cut(
  style: Style,
  lines: readonly Line[],
  slats: number,
  also?: readonly Line[],
): Grid

Parameters

NameTypeDescription
styleStyle
linesreadonly Line[]
slatsnumber
also?readonly Line[]

Default [].

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