title: JavaScript - Get average color from a certain area of an image
body: <p>I need to get the average color from a rectangle area of an image using <code>JavaScript</code>.</p>
  
  <p>I tried using <a href="https://trackingjs.com/" rel="nofollow noreferrer"><code>tracking.js</code></a> but it doesn't allow to specify areas instead of single pixels. </p>