n class="keyword">in</span> [<span class="number">0.</span>..width]
        pixels[yi] = (r_sum * mul_sum) &gt;&gt; shg_sum
        pixels[yi + <span class="number">1</span>] = (g_sum * mul_sum) &gt;&gt; shg_sum
        pixels[yi + <span class="number">2</span>] = (b_sum * mul_sum) &gt;&gt; shg_sum

        r_sum -= r_out_sum
        g_sum -= g_out_sum
        b_sum -= b_out_sum

        r_out_sum -= stackIn.r
        g_out_sum -= stackIn.g
        b_out_sum -= stackIn.b

        p = (yw + (<span class="key