, render);
    window.addEventListener("resize", () => {
      canvas.width = document.documentElement.clientWidth;
      canvas.height = document.documentElement.clientHeight;
      halfw = canvas.width / 2;
      halfh = canvas.height / 2;
    });
  </script>
</html>
