Closed Halfwake closed 2 years ago
This patch adds the constructor make-color and the accessors color-r, color-g, color-b, and color-a.
make-color
color-r
color-g
color-b
color-a
This will be useful when calling fill-rect or any other functions that take SDL_Color as an argument.
fill-rect
SDL_Color
The SDL_Color documentation: https://wiki.libsdl.org/SDL_Color
Actually, I cannot get this to work with fill-rect. Am I misunderstanding something simple?
This patch adds the constructor
make-color
and the accessorscolor-r
,color-g
,color-b
, andcolor-a
.This will be useful when calling
fill-rect
or any other functions that takeSDL_Color
as an argument.The
SDL_Color
documentation: https://wiki.libsdl.org/SDL_Color