Inline foreground/background code into ColourTranslator.