- The color is represented by a number, an RGB value (one byte per primary color).
- A RGB color can be represented as an hexadecimal number : 0xRRGGBB , RR meaning a 8bit hexadecimal red value, and so on.
Window.bgcolor read/write property
Get or set the Window background color.
Example
local ui = require "ui"
-- create a simple Window
local win = ui.Window("Window.bgcolor sample")
win.bgcolor = 0 -- black background
win:show()
-- update user interface
repeat
win.bgcolor = win.bgcolor + 0x010101
ui.update()
until not win.visible or win.bgcolor >= 0xFFFFFF