Skip to content

raylib.LoadImageAnim

JoeStrout edited this page Nov 16, 2026 · 4 revisions

Load animated image data (e.g. GIF). Returns a map with 'image' and 'frames' (the frame count). The image's pixel data holds all frames back to back, in RGBA format; frame delays are discarded. The frames argument is ignored

Parameters

Parameter Default Value Note
fileName
frames

Return value

Condition Return Value
(always) map

Notes

Example

result = raylib.LoadImageAnim("explosion.gif")
print "Frames: " + result.frames
if raylib.IsImageValid(result.image) then
    raylib.UnloadImage result.image
end if

Clone this wiki locally