Function getColorName

  • Asynchronously retrieves the name of a color from the Color Pizza API.

    Parameters

    • color: Color

      The color object to get the name for.

    Returns Promise<string>

    A promise that resolves to the name of the color, or 'Unknown' if an error occurs.