Sign In

$averageColor[]

Calculates the average (mean) color from two or more input colors and returns it in the specified format.

v1.0.2+ Requires Brackets

Usage

$averageColor[;]
Also callable as
$meanColor

Arguments

NameTypeRequiredDescription
format
YesThe desired output format (hex, rgb, hsl, etc.).
...colors
StringYesTwo or more colors to average.

Output

String

Was this page helpful?