code: function getSingleColor(color)
  {
      if (typeof color === 'number')
      {
          return hex2string(color);
      }
      else if ( typeof color === 'string' )
      {
          if ( color.indexOf('0x') === 0 )
          {
              color = color.replace('0x', '#');
          }
      }
  
      return color;
  }
docs: Utility function to convert hexadecimal colors to strings, and simply return the color if it's a string.
  @private
  @param {number|number[]} color
  @return {string} The color as a string.