code: function getColor(color)
  {
      if (!Array.isArray(color))
      {
          return getSingleColor(color);
      }
      else
      {
          for (let i = 0; i < color.length; ++i)
          {
              color[i] = getSingleColor(color[i]);
          }
  
          return color;
      }
  }
docs: Utility function to convert hexadecimal colors to strings, and simply return the color if it's a string.
  This version can also convert array of colors
  @private
  @param {number|number[]} color
  @return {string} The color as a string.