Skip to content

raylib.LoadImageColors

JoeStrout edited this page Apr 29, 2026 · 3 revisions

Load color data from image as a Color array (RGBA - 32bit) NOTE: Memory allocated should be freed using UnloadImageColors();

Parameters

Parameter Default Value Note
image

Return value

Condition Return Value
(always) list

Notes

Example

img = raylib.LoadImage("sprite.png")
colors = raylib.LoadImageColors(img)
print "First pixel: " + colors[0]
raylib.UnloadImageColors colors
raylib.UnloadImage img

Clone this wiki locally