added functions that convert rgb and hsb values to hexadecimal to be used by fill functions in canvas