chickadee » sdl2 » pixel-format-palette

pixel-format-palette pixel-formatprocedure
set! (pixel-format-palette pixel-format) valsetter
pixel-format-palette-set! pixel-format valsetter

Get or set the sdl2:pixel-format's "palette" field, as an sdl2:palette, or #f if it does not have a palette. Only sdl2:pixel-formats with bits-per-pixel of 8 or less can have a palette.

See SDL_SetPixelFormatPalette.

The setters signal an exception of kind (exn sdl2) if an error occurs.