# groupDistance

Canonical: https://docs.shumoku.dev/en/library/api/groupDistance
Language: en

@shumoku/core · 0.6.1 · function

# groupDistance

[Source](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/libs/@shumoku/core/src/themes/group-tone.ts#L81)

How different two groups' colours look, edge and fill, at one depth.

```
groupDistance(tone: GroupTone, depth: number, p: number, q: number): { edge: number; fill: number }
```

## Parameters

| Parameter | Type | Description | Default |
| --- | --- | --- | --- |
| `tone` | `GroupTone` | No additional description. | `—` |
| `depth` | `number` | No additional description. | `—` |
| `p` | `number` | No additional description. | `—` |
| `q` | `number` | No additional description. | `—` |

## Returns

```
{ edge: number; fill: number }
```

[`libs/@shumoku/core/src/libs/@shumoku/core/src/themes/group-tone.ts:81`](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/libs/@shumoku/core/src/themes/group-tone.ts#L81)
