Changing the render background color (SOLVED)

#1

Hi there,

Can you change the default color of the background of the game?

Thanks in advance,

K

1 Like

#2

Aaaaand found it :slight_smile:

clear_color
Set render clear color. This is the color that appears on the screen where nothing is rendered, i.e. background.

FIELDS
color color to use as clear color
EXAMPLES
msg.post("@render:", “clear_color”, { color = vmath.vector4(1, 0, 0, 0) } )

10 Likes

#4

Just in case anyone else copies and pastes this code and gets an error because of the formatting of the quotes, here is a “clean” version! :smiley:

msg.post("@render:", "clear_color", { color = vmath.vector4(1, 0, 0, 0) } )
2 Likes