Function getColorInfo

  • Asynchronously fetches color information from the ColorNaming API for a given color.

    Parameters

    • color: Color

      The color object for which to fetch information.

    Returns Promise<ColorInfo>

    A promise that resolves to the color information.

    If the API call fails.