Load colors palette from image as a Color array (RGBA - 32bit) NOTE: Memory allocated should be freed using UnloadImagePalette()
img = raylib.LoadImage("sprite.png") palette = raylib.LoadImagePalette(img, 256) print "Unique colors: " + palette.len raylib.UnloadImagePalette palette raylib.UnloadImage img
There was an error while loading. Please reload this page.