# flashes

function in `@dioramajs/text/text-glitch`

```ts
import { flashes } from '@dioramajs/text/text-glitch'
```

Keeps the text from flashing: the returned function passes the opacity of each drawn frame at
`now` seconds and holds it at 1 for a dip that would be the fourth to start within a second.

```ts
function flashes(): (alpha: number, now: number) => number
```

Defined in [packages/text/src/text-glitch.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/text/src/text-glitch.ts#L186).
