add paint tools for html

This commit is contained in:
Shuanglei Tao
2025-05-19 22:16:27 +08:00
parent 37c2fc8504
commit 3d53e3d810
4 changed files with 571 additions and 4 deletions

View File

@@ -364,7 +364,9 @@ function clear_canvas() {
if(confirm('确认清除画布内容?')) {
ctx.fillStyle = 'white';
ctx.fillRect(0, 0, canvas.width, canvas.height);
return true;
}
return false;
}
function convert_dithering() {