Write color changing directive