Skip to content

set_color

Set the color that later drawing calls use. Channels are 0 to 255.

Parameters

  • r — Red.
  • g — Green.
  • b — Blue.
  • a? — Alpha, default 255.
set_color(60, 160, 255)
draw_box(20, 20, 120, 80)

Related: clear_screen, draw_box.

See the drawing guide for more examples and limits.