chickadee » sdl2 » palette-ncolors

palette-ncolors paletteprocedure
palette-ncolours paletteprocedure

Returns the number of colors in the palette. Common values are 2 (for a 1-bit surface), 16 (for a 4-bit surface), and 256 (for an 8-bit surface).