Apachai.Effects.Core.RgbColor.RgbColor C# (CSharp) Method

RgbColor() public method

public RgbColor ( int R, int G, int B ) : System
R int
G int
B int
return System
        public RgbColor(int R, int G, int B)
        {
            #if DEBUG
            if (R < 0 || R > 255)
            {
                throw new ArgumentOutOfRangeException("R", R, "R must corrospond to a byte value");
            }
            if (G < 0 || G > 255)
            {
                throw new ArgumentOutOfRangeException("G", G, "G must corrospond to a byte value");
            }
            if (B < 0 || B > 255)
            {
                throw new ArgumentOutOfRangeException("B", B, "B must corrospond to a byte value");
            }
            #endif
            Red = R;
            Green = G;
            Blue = B;
        }