Skip to content

raylib.LoadImageColors

JoeStrout edited this page Nov 16, 2026 · 4 revisions

Get the pixel colors of an image as a list of colors, row by row from the top-left

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