add color wrap function
Merge branch 'master' into tricolor