added color functions and definitions for BD engine (not used yet)