code: function _0xColorToHex(color, convertToStr) {
          var hexColor = tinycolor(color.replace("0x", "#"));
          hexColor._format = "0x";
  
          if (convertToStr) {
              return hexColor.toString();
          }
          return hexColor;
      }
docs: Converts 0x-prefixed color to hex
  @param {string} color - Color to convert
  @param {boolean} convertToString - true if color should
  be returned as string
  @returns {tinycolor|string} - Hex color as a Tinycolor object
  or a hex string