# band

function in `@dioramajs/blocks/shine`

```ts
import { band } from '@dioramajs/blocks/shine'
```

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.

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

| Parameter | Type | Description |
| --- | --- | --- |
| `angle` | `number` |  |
| `share` | `number` |  |
| `width` | `number` |  |
| `height` | `number` |  |
| `t` | `number` |  |
| `out?` | `Vector4` |  |

Defined in [packages/blocks/src/shine.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/blocks/src/shine.ts#L28).
