Skip to content

raylib.GetImageColor

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Get image pixel color at (x, y) position

Parameters

Parameter Default Value Note
image
x
y

Return value

Condition Return Value
(always) map

Notes

Example

img = raylib.GenImageColor(64, 64, raylib.GREEN)
c = raylib.GetImageColor(img, 10, 10)
print c  // should be GREEN
raylib.UnloadImage img

Clone this wiki locally