Palette module
- Last UpdatedJul 20, 2026
- 1 minute read
The Palette module provides a centralized color scheme management system that defines and distributes consistent color values across all UI modules in the framework.
It establishes a unified color palette with predefined colors for buttons, borders, backgrounds, text, icons, and sliders that consumer modules can reference and apply.
The following tables shows some functions that the module exposes from the static class Palette::PaletteManager.
These functions allow to access colours based on the paletteName and colorName.
|
Method |
Return type |
Parameters |
Description |
|---|---|---|---|
|
GetColorRGB |
vector3 |
string paletteName, string colorName |
Return color as RGB. |
|
GetColorRGBA |
vector4 |
string paletteName, string colorName |
Return color as RGBA with alpha 1. |
|
GetColorRGBAsString |
string |
string paletteName, string colorName |
Return color as RGB as a string. |
|
GetColorRGBAAsString |
string |
string paletteName, string colorName |
Return color as RGBA with alpha 1 as a string. |