Equality.Equals
Extension Method in Equality
Declaration
public static bool Equals(this Color lhs, Color rhs, float rounding, bool compareAlpha = true)
Description
Determines if two colors are equal by comparing their component values after being rounded by a given amount.
Parameters
lhs | The first color to compare. |
rhs | The second color to compare. |
rounding | The amount to round the component values by. |
compareAlpha | Whether to compare the alpha values as well (default=true). |
Returns
bool | True if the colors are equal, false otherwise. |