Show / Hide Table of Contents

Class ColorExtensions

Offers some extensions and helper-methods for Color related things.

Inheritance
object
ColorExtensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: RGB.NET.Core
Assembly: RGB.NET.Core.dll
Syntax
public static class ColorExtensions

Methods

| Edit this page View Source

DistanceTo(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.

  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX