Enabling hex color usage in API.setTextColor()

The method API.setTextColor now allows the entry of color in hexadecimal format.