>>13285550fungus get their nutrients from a variety of places, some are atmospheric, some are from the substrate they grow on. fungus utilise enzymes to break down complex compounds in substrates to gain nutrients.
honestly not sure about the colours, but i imagine somewhere along the metabolic chain they produce whatever is needed to give them colour.
black mold is also really dangerous, op. you should do your best to fix the situation asap.