title: How come the canvas drawing is blurry, and how do I sharpen it?
body: <p>The code is as follows:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>const vs = document.getElementById("vs");
  const vs_ctx = vs.getContext("2d");
  
  vs_ctx.strokeStyle = "purple";
  vs_ctx.lineWidth = 3;
  vs_ctx.strokeRect(50, 50, 20, 20);</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>#vs {
      background-color: rgb(17, 17, 17);
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
      &lt;head&gt;
          &lt;meta charset="utf-8" /&gt;
          &lt;title&gt;template&lt;/title&gt;
          &lt;link rel="stylesheet" href="css.css" /&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;canvas id="vs"&gt;&lt;/canvas&gt;
          &lt;script type="module" src="main.js"&gt;&lt;/script&gt;
      &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>I'm using no css to scale or set the canvas, as I read that will make stuff blurry. However, my simple square still is. How do I sharpen this?</p>