Color mapping. Closes #169.