public static bool IsLike(this Color @this, Color other, byte luminanceDelta = 24, byte chromaUDelta = 7, byte chromaVDelta = 6) { if (@this == other) { return(true); } if (Math.Abs(@this.GetLuminance() - other.GetLuminance()) > luminanceDelta) { return(false); } if (Math.Abs(@this.GetChrominanceU() - other.GetChrominanceU()) > chromaUDelta) { return(false); } return(Math.Abs(@this.GetChrominanceV() - other.GetChrominanceV()) <= chromaVDelta); }