Need more understanding about the clear color and changing background (SOLVED)

msg.post("@render:", “clear_color”, { color = vmath.vector4(0.3, 0.4, 0.5, 0) })

0.3, 0.4, 0.5, 0 – where can i get those values so that i can change the background color of my game?..i only change it through trial and error coz actually i really dont know what is it and where can i get it…i dont think that it is RGB or CMYK…

1 Like

It is RGB with a minimum of 0 and a maximum of 1

4 Likes

The values are RGBA. I set mine like so:

msg.post("@render:", "clear_color", { color = vmath.vector4(0, 174/255.0, 239/255.0, 1.0) } )

This makes a little more sense to me as the values are reported up to 255 in most graphics programs :slight_smile:

5 Likes

http://www.colorpicker.com/

See on the right RGB values which you can then use with above method.

2 Likes

RGBA?..ok…i get it…thanks!..now i have more a clear understanding on it and also i know now how to use it properly!’… :’)

1 Like