extracted color-related methods into a category