pub unsafe extern "C" fn SDL_SetPaletteColors(
    palette: *mut SDL_Palette,
    colors: *const SDL_Color,
    firstcolor: c_int,
    ncolors: c_int
) -> c_int
Expand description

Set a range of colors in a palette.

\param palette the SDL_Palette structure to modify \param colors an array of SDL_Color structures to copy into the palette \param firstcolor the index of the first palette entry to modify \param ncolors the number of entries to modify \returns 0 on success or a negative error code if not all of the colors could be set; call SDL_GetError() for more information.

\since This function is available since SDL 2.0.0.

\sa SDL_AllocPalette \sa SDL_CreateRGBSurface