INNER CODE UNIT · C#

div

endlesstravel/Love2dCS · csharp_src/Love.Color.cs:144

            int div = max + min;
            if (div > byte.MaxValue)
                div = byte.MaxValue * 2 - max - min;

            return (max - min) / (float)div;
        }

        public int IntValue
        {
            get { return unchecked((int)UintValue); }
        }

        public override string ToString()
        {
            return "[Rf:" + Rf + ", Gf=" + Gf + ", Bf=" + Bf + ", Af=" + Af + "]";
        }

        public static bool operator ==(Color left, Color right) =>

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…