930 bytes added,
15:55, 20 August 2018 '''platform.window:setBackgroundColor''' is a function that is part of [[:Category:platform.window|platform.window]].
{{Since|3.9}}
Sets the background color of the script's window.
== Syntax ==
'''platform.window:setBackgroundColor'''(color)<br />
{| class="wikitable"
|-
! Parameter !! Type !! Description
|-
| <u><center>color</center></u> || number || A number representing the color of the background. Must be an integer between 0 and 16777216
|-
|}
NB: You can also use hexadecimal numbers instead of decimal ones for each of the arguments (from 0x000000 to 0xFFFFFF). The first two digits here represent the red, the third and fourth the green and the last two blue
== Example ==
Below is an example that sets the background color of the window to HTML silver.
<source lang="lua">
platform.apilevel == '2.4'
platform.window:setBackgroundColor(12632256) --0xC0C0C0 (HTML silver)
</source>
[[Category:platform.window]]