fix: clear canvas
This commit is contained in:
parent
d10ee19892
commit
e9f803d6be
1 changed files with 2 additions and 0 deletions
|
@ -16,6 +16,8 @@ addEventListener('DOMContentLoaded', () => {
|
|||
|
||||
canvas.width = canvas.height = size * scale
|
||||
|
||||
ctx.clearRect(0, 0, canvas.width, canvas.height)
|
||||
|
||||
for (let row = 0; row < size; row++) {
|
||||
for (let col = 0; col < size; col++) {
|
||||
if (eval(mask) == 0) {
|
||||
|
|
Loading…
Add table
Reference in a new issue