Microsoft.Xna.Framework.ColorExtensions.RedOnly C# (CSharp) Method

RedOnly() public static method

Returns a new Color using only the Red value of this color.
public static RedOnly ( this color ) : Color
color this Object instance.
return Color
        public static Color RedOnly(this Color color)
        {
            return new Color(color.R, 0, 0);
        }