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

Pond class

The drops waiting for the simulation and a bound on how high the waves still are, so frames stop once the water is calm.

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

.

class Pond

Members

NameTypeDescription
constructor
constructor(): Pond
levelnumber

Upper bound of the wave height in cells.

Default 0.

readonly queueDrop[]

Default [].

readonly calmboolean
add
add(drop: Drop): void
clear
clear(): void
settle
settle(factor: number, steps: number): void

steps simulation steps damped by factor each.

take
take(): Drop[]

The drops of the next step.

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