javascript - HTML5 canvas two canvas on top of another clear only top -
javascript - HTML5 canvas two canvas on top of another clear only top -
i have 2 canvas 1 top of how can clear top canvas layer. illustration if utilize erase tool clear background, need clear drawings on top canvas. picture is
picture link demo is
jsfidledemo
your 'foreground' canvas context beingness created background canvas. hence why erasing background. should attach mouse event html body; if move off canvas mousedown , mouse outside canvas going break logic .
javascript html5 canvas
Comments
Post a Comment