chickadee » sdl2 » palette-ref

palette-ref palette iprocedure
(set! (palette-ref palette i) color)setter
palette-set! palette i colorsetter

palette-ref returns a copy of the color at the given index of the palette, as a managed sdl2:color.

The setters set the given index of the palette to a copy of the given sdl2:color.

These procedures signal an exception of kind (exn bounds) if the given index is out of bounds.