Nohal.RleEditor.RleParser.Utils.HSB.HSB C# (CSharp) Method

HSB() public method

Creates an instance of a HSB structure.
public HSB ( double h, double s, double b ) : System
h double Hue value.
s double Saturation value.
b double Brightness value.
return System
        public HSB(double h, double s, double b)
        {
            hue = (h>360)? 360 : ((h<0)?0:h);
            saturation = (s>1)? 1 : ((s<0)?0:s);
            brightness = (b>1)? 1 : ((b<0)?0:b);
        }