I want to use the drawing-methods, (drawline(), drawcircle(), etc) , while I'm responding to mouse-events (hover, pressed, released, etc.)
a.t.m. I put all the drawing commands and parameters in 2 on-frame-alternating arrays, and let _draw() read these arrays and execute the functions.
It works, but I'm not sure if it works under all circumstances.
What would be a proper way to do this?