igiSetColour

Sets one of the 61 colours IGI uses. Takes element (Which colour: an IGI_COL_* constant (IGI_COL_WINDOWBG, IGI_COL_BUTTON, IGI_COL_TEXT ...)), r (Red 0-255), g (Green 0-255), b (Blue 0-255), a (Opacity 0-255 (255 = solid)).

IGI

Parameters & Returns

Parameters

element Int
r Int
g Int
b Int
a Int

Returns

Void

Quick Summary

Sets one of the 61 colours IGI uses. Takes element (Which colour: an IGI_COL_* constant (IGI_COL_WINDOWBG, IGI_COL_BUTTON, IGI_COL_TEXT ...)), r (Red 0-255), g (Green 0-255), b (Blue 0-255), a (Opacity 0-255 (255 = solid)).

Technical Exegesis...

Sets one of the 61 colours IGI uses. The IGI_COL_* names match Dear ImGui's (ImGuiCol_WindowBg is IGI_COL_WINDOWBG), so an ImGui theme found online can be copied across line by line: ImGui gives colours as 0.0-1.0, so multiply by 255. Stays until changed (a theme replaces all colours).

Styling and fonts can be set up once, in Main, before the loop. See the IGI guide.

Example

Example.bam
igiSetColour(IGI_COL_WINDOWBG, 20, 20, 30, 240)
igiSetColour(IGI_COL_BUTTON, 160, 60, 30, 200)
igiSetColour(IGI_COL_BUTTONHOVERED, 200, 90, 40, 255)