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 -

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

database - php search bar when I press submit with nothing in the search bar it shows all the data -