Writing colors to files