In managing resources, the "remove()" function does not work with canvas.
I want to remove all memory from a canvas so as to allow for resource management.
Is this code working the same as remove(myimage) but for canvas, or am I missing something.
Code: Select all
circle_id = canvas_add(0, 0, 200, 200)
canvas_draw(circle_id, function()
_circle(100, 100, 100)
_fill("red")
end)
canvas_draw(circle_id, function()
circle_id=nil
end)
circle_id = canvas_add(0, 0, 200, 200)
canvas_draw(circle_id, function()
_circle(100, 100, 100)
_fill("blue")
end)
Keith