Skip to content

raylib.GetColor

JoeStrout edited this page Apr 29, 2026 · 3 revisions

Get a Color struct from hexadecimal value

Parameters

Parameter Default Value Note
hexValue

Return value

Condition Return Value
(always) map

Notes

Example

// Build a color from a packed hex integer (RGBA)
c = raylib.GetColor(0xFF0000FF)
print c  // opaque red

Clone this wiki locally