Table of Contents

Method IsApproximatelyWhite

Namespace
Gamelogic.Extensions
Assembly
Gamelogic.Extensions.dll

IsApproximatelyWhite(Color)

Returns whether the color is white or almost white.

public static bool IsApproximatelyWhite(this Color color)

Parameters

color Color

The color to test.

Returns

bool

true if the sum of RGB channels is at or above (1 - epsilon); otherwise, false.