title: Apply noise on circle according to mouseX and mouseY
body: <p>I have created a blob with small points. I want my blob to show noise on its surface according to mouseX and mouseY. I want it to show high noise in the quadrant in which the mouse lies. I want it to be wavy. Below is my code.</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>var ctx = document.querySelector("canvas").getContext("2d");
  var cx = 200;
  var cy = 200;
  var radius = 50;
  var amp = 2;
  var mouseX = 0;
  var mouseY = 0;
  
  document.querySelector("canvas").addEventListener("mousemove", function (e) {
   mouseX = e.clientX;
   mouseY = e.clientY;
  });
  
  function drawTheBlob() {
   ctx.fillStyle = "#000";
   ctx.fillRect(0, 0, 400, 400);
  
   ctx.beginPath();
   ctx.strokeStyle = "#fff";
    for (var a = 0; a &lt; 360; a ++) {
      var angle = a * Math.PI/180;
      var x = cx + radius * Math.cos(angle) + Math.random() * amp;
      var y = cy + radius * Math.sin(angle) + Math.random() * amp;
      ctx.lineTo(x, y);
    }
    ctx.stroke();
    ctx.closePath();
    
    requestAnimationFrame(drawTheBlob);
  }
  
  drawTheBlob();</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;canvas width="400" height="400"&gt;&lt;/canvas&gt;</code></pre>
  </div>
  </div>
  </p>