What is the function of each expression? ...the countless flashes of red from swords and spears

the - article

countless - adjective
flashes - noun
of - preposition
red - noun (in this case)
from - preposition
swords - noun
and -conjunction
spears - noun