diff --git a/index.html b/index.html index 960dabe..7c66d93 100644 --- a/index.html +++ b/index.html @@ -149,8 +149,8 @@

1. Paste byte array


- x - px + x + px
@@ -188,7 +188,7 @@
- +
0 - 255; pixels with brightness above become white, below become black.
@@ -614,15 +614,17 @@ imageEntry.setAttribute('data-img', file.name); var w = document.createElement('input'); - w.type = "text"; + w.type = "number"; w.name = "width"; + w.min = 0; w.className = "size-input"; w.value = img.width; w.oninput = function() { canvas.width = this.value; update(); }; var h = document.createElement('input'); - h.type = "text"; + h.type = "number"; h.name = "height"; + h.min = 0; h.className = "size-input"; h.value = img.height; h.oninput = function() { canvas.height = this.value; update(); };