The rubber sassafras function is realized on the canvas background image without destroying the background image.

and then realize the painting function on the canvas of the background map, such as drawing a circle and so on. I want to make a rubber Sassafras function, which can remove part of the circle without affecting the background image. How can this be realized? I use canvas"s API clearRec () to erase the background image,

.
Feb.28,2021

give me an idea on mobile phone

Draw () {
clear ()
DrawBackground ()
DrawForeground ()
}
just keep draw


do two layers of Canvas


save restore

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bdb541-31262.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bdb541-31262.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?