CANVAS:fill

CANVAS:fill(color)

Flood fill the entire canvas with a specific color


Parameters:
    color   An RGB color value as an integer value.
                    

-- Flood fill the canvas with a red background value
function FillWithRed(name)
    local canvas = gre.get_canvas(name)
    canvas:fill(0xff0000)
end