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

pulseAt function

Where the two pulse beams are `clock` s into the loop: the distance each has run from the top middle, px, and their opacity.

View as Markdown
import { pulseAt } from '@dioramajs/blocks/beam'

. They run half the border, meet at the bottom and rest.

function pulseAt(
  clock: number,
  speed: number,
  around: number,
): { envelope: number; head: number }

Parameters

NameTypeDescription
clocknumber
speednumber
aroundnumber

Defined in packages/blocks/src/beam.ts.