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

Popular posts from this blog

php - How to pass multiple values from url -

php - Laravel not returning controller -

c# - Confused on how to specify a Platform and Version while using ChromeOptions for RemoteWebDriver with Selenium donNet since recent updates -