Canvas.bgcolor
Get or set the Canvas background color. When set, the canvas is cleared with this new color
Example
--! luart-extensions
import ui
require "canvas"
-- create a simple window
local win = ui.Window("canvas.bgcolor sample", "fixed", 500, 400)
local canvas = ui.Canvas(win)
canvas.align = "all"
win:show()
-- update user interface
repeat
canvas:begin()
canvas:clear(math.random(0xFFFFFFFF))
canvas:flip()
ui.update()
until not win.visible