             <span class="n">color_mask</span><span class="p">[</span><span class="n">c</span><span class="p">]</span> <span class="o">=</span> <span class="n">color_mask</span><span class="p">[</span><span class="n">c</span><span class="p">]</span> <span class="o">*</span> <span class="p">(</span><span class="mi">1</span> <span class="o">-</span> <span class="n">w_ratio</span><span class="p">)</span> <span class="o">+</span> <span class="n">w_ratio</span>
            <span class="k">for</span> <span class=