introduce a central function to create color commands