Load color data from image as a Color array (RGBA - 32bit) NOTE: Memory allocated should be freed using UnloadImageColors();
img = raylib.LoadImage("sprite.png") colors = raylib.LoadImageColors(img) print "First pixel: " + colors[0] raylib.UnloadImageColors colors raylib.UnloadImage img
There was an error while loading. Please reload this page.