</script>
  </head>
  <body>
    <center>
    <h1>
mask -> splixels
    </h1>
    <br>
    <br>
    <canvas id="canvas" width=1024 height=1024></canvas>
    <div style="text-align:right; width:1024px; padding-bottom:12pt;">
        grid_size: <input type="text" id="grid_size" value="64">
        nd: <input type="text" id="nd" value="0.5">
        weight: <input type="text" id="weight" value="4">
        shiftd: <input type="text" id="shiftd" value="1.5">
        <button type="button" onclick="reset_magic_nu