# gizgame/screens

The flow's panels: the title, the pause, the settings and the end.

```gizlang
import * as Screens from "gizgame/screens";
```

## Functions

### `panels`

```gizlang
function panels(hud: Hud): void throws string
```

The flow's screens over HUD: the title (the game's title, its help and the keys that start), the pause (the
settings) and the end (Game.ends: its words, and the score unless it says a line).

Effects: fail, read, write, console, io, alloc.

### `glass`

```gizlang
function glass(alpha: f64): Vec<f64>
```

The dark glass of a panel, ALPHA thick.

Effects: fail, alloc.

### `button`

```gizlang
function button(h: Hud, text: string, x: f64, y: f64, color: Vec<f64>, code: string): f64 throws string
```

A button: TEXT on a filled pill in COLOR, its left at X and its top at Y, a soft light behind that breathes; a
pointer on it presses the key CODE; its width.

Effects: fail, read, write, console, io, alloc.

## Constants

### `ACCENT`

```gizlang
const ACCENT = [0.45, 0.9, 1, 1]
```

The panels' accent color.

### `INK`

```gizlang
const INK = [0.03, 0.05, 0.08, 1]
```

The panels' ink.

### `BLEND`

```gizlang
const BLEND = 1.0
```

How long the eye takes to ease back from a conversation's shot, in seconds.

### `GAZING`

```gizlang
const GAZING = 0.07
```

The time constant, in seconds, of a head that turns to a new mark (figure).

### `OVER`

```gizlang
const OVER: Vec<f64> = [1.0, 0.7, 0.05, 0.6]
```

An over-the-shoulder shot (dialogue): the eye this far behind the listener's eyes, this far to its side, and this
far above the middle of the two's eyes, in
meters, and its field of view in radians (a medium close-up of the one who speaks, a short lens's 34 degrees).

