Calculate fill using pixels[] array