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

HsvColor() public method

public HsvColor ( int hue, int saturation, int value ) : System
hue int
saturation int
value int
return System
        public HsvColor(int hue, int saturation, int value)
        {
            if (hue < 0 || hue > 360)
            {
                throw new ArgumentOutOfRangeException("hue", "must be in the range [0, 360]");
            }

            if (saturation < 0 || saturation > 100)
            {
                throw new ArgumentOutOfRangeException("saturation", "must be in the range [0, 100]");
            }

            if (value < 0 || value > 100)
            {
                throw new ArgumentOutOfRangeException("value", "must be in the range [0, 100]");
            }

            Hue = hue;
            Saturation = saturation;
            Value = value;
        }