Skip to main content

Function: averageColor()

averageColor(...colors): string

Defined in: src/utils/color.ts:173

Return the per-channel average of the given colors as a hex string.

Ports average_color. Alpha is ignored; the result is fully opaque.

Parameters​

colors​

...string[]

Returns​

string