INNER CODE UNIT · C#

Equals

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

        public override bool Equals(object obj) => obj is Color other && Equals(other);

        public bool Equals(Color other) => this == other;

        public override int GetHashCode()
        {
            return HashHelpers.Combine(r, g, b, a);
        }


        public static Color Lerp(Color a, Color b, float t)
        {
            float it = 1 - t;
            return new Color(
                it * a.Rf + t * b.Rf,
                it * a.Gf + t * b.Gf,
                it * a.Bf + t * b.Bf,
                it * a.Af + t * b.Af

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…