internal static bool IsDarker(Color c1, Color c2) { HLSColor color = new HLSColor(c1); HLSColor color2 = new HLSColor(c2); return(color.Luminosity < color2.Luminosity); }
public override bool Equals(object o) { if (!(o is HLSColor)) { return(false); } HLSColor c = (HLSColor)o; return(hue == c.hue && saturation == c.saturation && luminosity == c.luminosity && isSystemColors_Control == c.isSystemColors_Control); }