Fix a bug of color functions
Add mix function