# colour_join_rgb

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/colour.c#L92
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-colour_join_rgb/

```c
int colour_join_rgb(u_char r, u_char g, u_char b)
```

## Parameters

- `r` (`u_char`)
- `g` (`u_char`)
- `b` (`u_char`)

## Called by

- [`colour_byname`](/en/tmux/3.7c/reference/c-function-colour_byname/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/colour.c#L999)
- [`colour_fromstring`](/en/tmux/3.7c/reference/c-function-colour_fromstring/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/colour.c#L242)
- [`colour_parseX11`](/en/tmux/3.7c/reference/c-function-colour_parsex11/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/colour.c#L1021)
- [`input_csi_dispatch_sgr_rgb_do`](/en/tmux/3.7c/reference/c-function-input-c-input_csi_dispatch_sgr_rgb_do/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L2247)

## Referenced declarations

- [`COLOUR_FLAG_RGB`](/en/tmux/3.7c/reference/c-define-tmux-h-colour_flag_rgb/) (constant)
