">24</span>, <span class="number">24</span>]

  <span class="function"><span class="title">getLinearGradientMap</span></span> = (width, height, centerX, centerY, angle, length, mirrored) -&gt;
    cnv = <span class="keyword">if</span> exports? <span class="keyword">then</span> <span class="keyword">new</span> Canvas() <span class="keyword">else</span> document.createElement(<span class="string">'canvas'</span>)
    cnv.width = width
    cnv.height = height

    x1 = centerX + Math.cos(angle) * length * <spa