Averaging.Average

Extension Method in Averaging

Declaration

public static Color Average(this Color color, Color other)

Description

Returns the result of averaging the RGBA component values of the color with another color.

Parameters

colorThe color to average.
otherThe color to average with.

Returns

ColorThe average color.

Overload

Declaration

public static Color Average(this Color[] colors)

Description

Returns the result of averaging the RGBA component values of the colors.

Parameters

colorsThe colors to average.

Returns

ColorThe average color.