Skip to main content

Function: getColorInfo()

getColorInfo(color): Promise<ColorInfo>

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

Parameters​

ParameterTypeDescription
colorColorThe 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