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

iceMap function

The ice over a domain of `width` by `height` texels with `em` texels to the em, rows top down, RGBA bytes: red the cracks, green the frost (thick at the edges, in patches and along the cracks), blue the cracks blurred, for the light they bend.

View as Markdown
import { iceMap } from '@dioramajs/text/water'

.

function iceMap(
  width: number,
  height: number,
  em: number,
  seed?: number,
): Uint8Array

Parameters

NameTypeDescription
widthnumber
heightnumber
emnumber
seed?number

Default 1.

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