Skip to main content

Function: getColorName()

getColorName(color): Promise<string>

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

Parameters

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

Defined in

utils/components/color-naming.ts:114