SDL_SetPaletteColors
Set a range of colors in a palette.
- Provided by: libsdl3-doc (Version: 3.4.2+ds-1ubuntu1)
- Source: libsdl3
- Report a bug
Set a range of colors in a palette.
#include <SDL3/SDL_pixels.h>
bool SDL_SetPaletteColors(SDL_Palette *palette, const SDL_Color *colors, int firstcolor, int ncolors);
Returns true on success or false on failure; call SDL_GetError() for more information.
It is safe to call this function from any thread, as long as the palette is not modified or destroyed in another thread.
This function is available since SDL 3.2.0.