Compare commits

...

2 commits

Author SHA1 Message Date
e9f803d6be
fix: clear canvas 2024-07-06 11:40:44 +04:00
d10ee19892
add copyright holder 2024-07-06 11:40:25 +04:00
2 changed files with 3 additions and 1 deletions

View file

@ -187,7 +187,7 @@
same "printed page" as the copyright notice for easier same "printed page" as the copyright notice for easier
identification within third-party archives. identification within third-party archives.
Copyright [yyyy] [name of copyright owner] Copyright 2024 Andrey DarkCat09
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.

View file

@ -16,6 +16,8 @@ addEventListener('DOMContentLoaded', () => {
canvas.width = canvas.height = size * scale canvas.width = canvas.height = size * scale
ctx.clearRect(0, 0, canvas.width, canvas.height)
for (let row = 0; row < size; row++) { for (let row = 0; row < size; row++) {
for (let col = 0; col < size; col++) { for (let col = 0; col < size; col++) {
if (eval(mask) == 0) { if (eval(mask) == 0) {