# gizgame/particles

A game's particles, drawn in 3D and in 2D.

```gizlang
import * as Particles from "gizgame/particles";
```

## Functions

### `particles3D`

```gizlang
function particles3D(game: Game, stage: Stage): void throws string
```

GAME's particles on STAGE: each kind is a model of the same name (Stage.add): a streak stretched along its motion
and thinned as it cools, a soft puff swelling as it ages and gone small at its end, else placed at its size, turning.

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

### `puff`

```gizlang
function puff(color: Vec<f64>): Gaussians throws string
```

A unit puff of smoke or dust in COLOR: 20 gaussian splats in a ball, fainter toward its rim.

Effects: fail, alloc.

### `particles2D`

```gizlang
function particles2D(game: Game, canvas: mut Canvas2D): void throws string
```

GAME's particles on CANVAS: a glow in each one's color and a bright core, fading out.

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

