Parameterize color scheme function.