igiSetColour

Category: IGI (in-game GUI) — Styling

Syntax:

igiSetColour:Void(element:Int, r:Int, g:Int, b:Int, a:Int)


Parameters

Returns

Nothing



Summary

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
igiSetColour(IGI_COL_WINDOWBG, 20, 20, 30, 240)
igiSetColour(IGI_COL_BUTTON, 160, 60, 30, 200)
igiSetColour(IGI_COL_BUTTONHOVERED, 200, 90, 40, 255)

BambooBasic © 2026 Michael Denathorn