Esempio n. 1
0
        internal static bool IsDarker(Color c1, Color c2)
        {
            HLSColor color  = new HLSColor(c1);
            HLSColor color2 = new HLSColor(c2);

            return(color.Luminosity < color2.Luminosity);
        }
Esempio n. 2
0
        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);
        }