This question was inspired by this: Are there colorful metals besides gold and copper?
I was wondering how the color of a pure element could be changed. I know that it is possible for color to change when electrons to get excited, but I'm curious about how that works. Can you change the color of any element if you heat it up enough (I'm talking about the pure elements here, not compounds)? If not, then what limitations are there about changing color? And to ask something a little more specific, could the color of pure gold be changed without adding it to an alloy or compound?
Note: These questions Why does iodine have different colors in different media? What does a molecules color have to do with its bond/orbital energies? do talk about this topic, but I felt like they didn't answer my query satisfactorily.