Fixed bug with color function `tint`, closes #2