Skip to content

raylib.UnloadImageColors

JoeStrout edited this page Apr 29, 2026 · 3 revisions

Unload color data loaded with LoadImageColors()

Parameters

Parameter Default Value Note
colors

Return value

None.

Notes

Example

img = raylib.LoadImage("sprite.png")
colors = raylib.LoadImageColors(img)
print "Pixel count: " + colors.len
raylib.UnloadImageColors colors
raylib.UnloadImage img

Clone this wiki locally