">0</span>, <span class="string">"white"</span>)
      gradient.addColorStop(<span class="number">1</span>, <span class="string">"black"</span>)
    <span class="keyword">else</span>
      gradient.addColorStop(<span class="number">0</span>, <span class="string">"white"</span>)
      gradient.addColorStop(<span class="number">0.5</span>, <span class="string">"black"</span>)
      gradient.addColorStop(<span class="number">1</span>, <span class="string">"white"</span>)
    
    context.fillStyle = gradient
 