Table of Contents

Method Brightness

Namespace
Gamelogic.Extensions
Assembly
Gamelogic.Extensions.dll

Brightness(Color)

Returns the brightness of the color, defined as the average of the three color channels.

public static float Brightness(this Color color)

Parameters

color Color

The color to measure.

Returns

float

The average of the R, G, and B channels.