# colour_palette_init

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

```c
void colour_palette_init(struct colour_palette *p)
```

## Parameters

- `p` (`struct colour_palette *`)

## Called by

- [`popup_display`](/en/tmux/latest/reference/c-function-popup_display/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/popup.c#L837)
- [`window_pane_create`](/en/tmux/latest/reference/c-function-window-c-window_pane_create/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L1073)

## Referenced declarations

- [`colour_palette.bg`](/en/tmux/latest/reference/c-struct-colour_palette-bg/) (attribute)
- [`colour_palette`](/en/tmux/latest/reference/c-struct-colour_palette/) (struct)
- [`colour_palette.default_palette`](/en/tmux/latest/reference/c-struct-colour_palette-default_palette/) (attribute)
- [`colour_palette.fg`](/en/tmux/latest/reference/c-struct-colour_palette-fg/) (attribute)
- [`colour_palette.palette`](/en/tmux/latest/reference/c-struct-colour_palette-palette/) (attribute)
