# colour_palette_from_option

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

```c
void colour_palette_from_option(struct colour_palette *p, struct options *oo)
```

## Parameters

- `p` (`struct colour_palette *`)
- `oo` (`struct options *`)

## Called by

- [`cmd_break_pane_exec`](/en/tmux/3.7c/reference/c-function-cmd-break-pane-c-cmd_break_pane_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-break-pane.c#L128)
- [`cmd_join_pane_exec`](/en/tmux/3.7c/reference/c-function-cmd-join-pane-c-cmd_join_pane_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-join-pane.c#L119)
- [`cmd_swap_pane_exec`](/en/tmux/3.7c/reference/c-function-cmd-swap-pane-c-cmd_swap_pane_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-swap-pane.c#L153)
- [`options_push_changes`](/en/tmux/3.7c/reference/c-function-options_push_changes/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L1235)
- [`popup_display`](/en/tmux/3.7c/reference/c-function-popup_display/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/popup.c#L838)
- [`window_pane_create`](/en/tmux/3.7c/reference/c-function-window-c-window_pane_create/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L1074)

## Calls

- [`options_array_item_index`](/en/tmux/3.7c/reference/c-function-options_array_item_index/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/colour.c#L1150)
- [`options_array_item_value`](/en/tmux/3.7c/reference/c-function-options_array_item_value/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/colour.c#L1152)
- [`options_array_next`](/en/tmux/3.7c/reference/c-function-options_array_next/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/colour.c#L1155)
- [`options_get`](/en/tmux/3.7c/reference/c-function-options_get/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/colour.c#L1137)
- [`xcalloc`](/en/tmux/3.7c/reference/c-function-xcalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/colour.c#L1146)

## Other function references

- [`options_array_first`](/en/tmux/3.7c/reference/c-function-options_array_first/) (function)

## Referenced declarations

- [`colour_palette`](/en/tmux/3.7c/reference/c-struct-colour_palette/) (struct)
- [`colour_palette.default_palette`](/en/tmux/3.7c/reference/c-struct-colour_palette-default_palette/) (attribute)
- [`options_value.number`](/en/tmux/3.7c/reference/c-union-options_value-number/) (attribute)
- [`options`](/en/tmux/3.7c/reference/c-struct-options/) (struct)
