Add color.type function
Remove unnecessary vararg usage