window.addEventListener("load", doit, false) var canvas; var ctx; var tempImg; function doit() { const body = document.getElementsByTagName('BODY')[0]; const scale = document.getElementById('scale').value; let trans = document.getElementById('trans').checked; if (trans) { trans = ''; } else { trans = 'background-color:white;'; } let source = `
The claims in the HTML-text is only true for the image created when you click the button. | |
|
In this example the PNG-image will be squarish even if the HTML here on the left is not exactly squarish. That can be fixed.
To increase the resolution of the image you can change the scaling with this slider. |