# colour_split_rgb

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

```c
void colour_split_rgb(int c, u_char *r, u_char *g, u_char *b)
```

## Parameters

- `c` (`int`)
- `r` (`u_char *`)
- `g` (`u_char *`)
- `b` (`u_char *`)

## Called by

- [`colour_tostring`](/en/tmux/3.2a/reference/c-function-colour_tostring/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/colour.c#L119)
- [`grid_string_cells_bg`](/en/tmux/3.2a/reference/c-function-grid-c-grid_string_cells_bg/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/grid.c#L795)
- [`grid_string_cells_fg`](/en/tmux/3.2a/reference/c-function-grid-c-grid_string_cells_fg/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/grid.c#L746)
- [`input_osc_colour_reply`](/en/tmux/3.2a/reference/c-function-input-c-input_osc_colour_reply/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L2488)
- [`tty_check_bg`](/en/tmux/3.2a/reference/c-function-tty-c-tty_check_bg/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L2482)
- [`tty_check_fg`](/en/tmux/3.2a/reference/c-function-tty-c-tty_check_fg/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L2433)
- [`tty_colours_us`](/en/tmux/3.2a/reference/c-function-tty-c-tty_colours_us/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L2616)
- [`tty_try_colour`](/en/tmux/3.2a/reference/c-function-tty-c-tty_try_colour/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L2648)

## Referenced by

- [`server_client_push_stderr`](/en/tmux/3.2a/reference/c-function-server_client_push_stderr/) (function)
