chickadee » sdl2 » fill-rect!

fill-rect! surface rect colorprocedure

See SDL_FillRect.

  • rect may be an sdl2:rect to fill part of the surface, or #f to fill the entire surface.
  • color may be an sdl2:color or a mapped color (an integer, like returned by map-rgba).

Signals an exception of kind (exn sdl2) if an error occurs.