Function: getColorInfo()
getColorInfo(
color
):Promise
<ColorInfo
>
Asynchronously fetches color information from the ColorNaming API for a given color.
Parameters
Parameter | Type | Description |
---|---|---|
color | Color | The color object for which to fetch information. |
Returns
Promise
<ColorInfo
>
A promise that resolves to the color information.
Throws
If the API call fails.
Defined in
utils/components/color-naming.ts:131