-
Notifications
You must be signed in to change notification settings - Fork 2
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();
| Parameter | Default Value | Note |
|---|---|---|
| image |
| Condition | Return Value |
|---|---|
| (always) | list |
img = raylib.LoadImage("sprite.png")
colors = raylib.LoadImageColors(img)
print "First pixel: " + colors[0]
raylib.UnloadImageColors colors
raylib.UnloadImage img