Class ColorExtensions
Offers some extensions and helper-methods for Color related things.
Inherited Members
Namespace: RGB.NET.Core
Assembly: RGB.NET.Core.dll
Syntax
public static class ColorExtensions
Methods
| Edit this page View SourceDistanceTo(in Color, in Color)
Calculates the distance between the two specified colors using the redmean algorithm. For more infos check https://www.compuphase.com/cmetric.htm
Declaration
public static double DistanceTo(this in Color color1, in Color color2)
Parameters
Type | Name | Description |
---|---|---|
Color | color1 | The start color of the distance calculation. |
Color | color2 | The end color fot the distance calculation. |
Returns
Type | Description |
---|---|
double | The redmean distance between the two specified colors. |