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
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

0 comments

Article is closed for comments.