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.
import { band } from '@dioramajs/blocks/shine'.
function band(
angle: number,
share: number,
width: number,
height: number,
t: number,
out?: Vector4,
): Vector4Parameters
| Name | Type | Description |
|---|---|---|
angle | number | |
share | number | |
width | number | |
height | number | |
t | number | |
out? | Vector4 | Default |
Defined in packages/blocks/src/shine.ts.