- 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.
Panel.bgcolor read/write property
Get or set the Panel background color.
Example
local ui = require "ui"
-- create a fixed Panel
local win = ui.Window("Panel.bgcolor sample", "fixed", 320, 200)
-- create a blue Panel
local panel = ui.Panel(win, 0, 0, 100, 100)
panel.bgcolor = 0xffcc00
panel:center()
ui.run(win):wait()