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

@dioramajs/media/glitch

Exports of @dioramajs/media/glitch.

View as Markdown
On this page
import { chance, default, strike } from '@dioramajs/media/glitch'

Functions

chanceA uniform random number in [0, 1) for the seed and two counters: the same on every load.
strikeThe strength of step `n` of burst `burst`, 0..1, at `t` of its length: the first step hits in full, some later ones drop out so the picture stutters back, and the rest fade a little.

Constants

defaultDigital glitch on an image or video: blocks of it slide sideways, its color channels split, scanlines flicker and static flashes, in short bursts on hover, on a timer, with scroll speed or once as it first shows. At rest the copy is the image as it is.