diff --git a/docs/image-converter.html b/docs/image-converter.html
index 04239b1..3d67029 100644
--- a/docs/image-converter.html
+++ b/docs/image-converter.html
@@ -1,401 +1,397 @@
-
-
- ZennDev1337 Image Converter
-
-
-
-
-
-
-
+
-
-
+ // Print the column in hex notation, add a comma for formatting
+ var digitStr = spriteByte.toString(16);
+ if (digitStr.length == 1) {
+ digitStr = "0" + digitStr;
+ }
+ spriteString += "0x" + digitStr + ", ";
+ if (
+ currentByte % droppedImage.naturalWidth ==
+ droppedImage.naturalWidth - 1
+ ) {
+ spriteString += "\n";
+ }
+ currentByte++;
+ }
+ }
+ // Terminate the array
+ spriteString += "];";
+ // Create an invisible element containing the string
+ droppedImageCode.innerHTML = spriteString;
+
+ // Resize canvas to show 2x scaled image
+ droppedImageCanvas.width =
+ droppedImage.naturalWidth * 2;
+ droppedImageCanvas.height =
+ droppedImage.naturalHeight * 2;
+ droppedImageContext =
+ droppedImageCanvas.getContext("2d");
+ droppedImageContext.imageSmoothingEnabled = false;
+ droppedImageContext.drawImage(
+ droppedImage,
+ 0,
+ 0,
+ droppedImage.naturalWidth * 2,
+ droppedImage.naturalHeight * 2
+ );
+ }, 50);
+ };
+ reader.readAsDataURL(imageData);
+ }
+
+