Flood.GUI.Util.Add C# (CSharp) Method

Add() public static method

public static Add ( this color, System.Color other ) : System.Color
color this
other System.Color
return System.Color
        public static Color Add(this Color color, Color other)
        {
            var nR = (byte)Math.Min(255, color.R + other.R);
            var nG = (byte)Math.Min(255, color.G + other.G);
            var nB = (byte)Math.Min(255, color.B + other.B);
            var nA = (byte)Math.Min(255, color.A + other.A);
            return new Color(nR, nG, nB, nA);
        }

Same methods

Util::Add ( this r, Rectangle other ) : Rectangle