Codechange: Introduce THColour decoding functions.