# gap

function in `@dioramajs/text/tunnel`

```ts
import { gap } from '@dioramajs/text/tunnel'
```

Distance between two convex outlines on screen, px; negative when they overlap.

```ts
function gap(a: readonly Point[], b: readonly Point[]): number
```

| Parameter | Type | Description |
| --- | --- | --- |
| `a` | `readonly Point[]` |  |
| `b` | `readonly Point[]` |  |

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