added i%porciones.length to color accesses