Skip to content

raylib.ColorToInt

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Get hexadecimal value for a Color

Parameters

Parameter Default Value Note
color

Return value

Condition Return Value
(always) number

Notes

Example

// Get the packed integer representation of RED
n = raylib.ColorToInt(raylib.RED)
print n  // 4278190335 (0xFF0000FF)

Clone this wiki locally