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

band function

Where the band is `t` of the way through a sweep across a box of `width` x `height` px at `angle` (CSS gradient degrees, 90 sweeps left to right): the direction in box px with y up, the band's centre along it and its half width, px.

View as Markdown
import { band } from '@dioramajs/blocks/shine'

.

function band(
  angle: number,
  share: number,
  width: number,
  height: number,
  t: number,
  out?: Vector4,
): Vector4

Parameters

NameTypeDescription
anglenumber
sharenumber
widthnumber
heightnumber
tnumber
out?Vector4

Default ....

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