Name
sdl.SetRenderDrawColor -- set draw color
Synopsis
sdl.SetRenderDrawColor(display, r, g, b[, a])
Function
Use this function to set the color for drawing or filling rectangles, lines, and points, and for sdl.RenderClear().

If you want to have alpha blending, use sdl.SetRenderDrawBlendMode() to specify how the alpha channel is used.

Inputs
display
identifier of display whose renderer should be used
r
the red value used to draw on the rendering target (ranging from 0 to 255)
g
the green value used to draw on the rendering target (ranging from 0 to 255)
b
the blue value used to draw on the rendering target (ranging from 0 to 255)
a
optional: the alpha value used to draw on the rendering target (defaults to #SDL_ALPHA_OPAQUE)

Show TOC