Skip to content

raylib.ColorAlpha

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Get color with alpha applied, alpha goes from 0.0f to 1.0f

Parameters

Parameter Default Value Note
color
alpha

Return value

Condition Return Value
(always) map

Notes

Example

// Make red 50% transparent
semiRed = raylib.ColorAlpha(raylib.RED, 0.5)
print semiRed  // color with alpha applied

Clone this wiki locally