# colour_dist_sq

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/colour.c#L30
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-colour-c-colour_dist_sq/

```c
static int colour_dist_sq(int R, int G, int B, int r, int g, int b)
```

## Parameters

- `R` (`int`)
- `G` (`int`)
- `B` (`int`)
- `r` (`int`)
- `g` (`int`)
- `b` (`int`)

## Called by

- [`colour_find_rgb`](/en/tmux/3.2a/reference/c-function-colour_find_rgb/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/colour.c#L82)
