/// <summary> /// Initializes a new instance of a colour with an alpha component /// </summary> /// <param name="red">Red component, from fp0.0 to fp1.0 (Or beyond if you wish)</param> /// <param name="green">Green component, from fp0.0 to fp1.0 (Or beyond if you wish)</param> /// <param name="blue">Blue component, from fp0.0 to fp1.0 (Or beyond if you wish)</param> /// <param name="alpha">Alpha component, from fp0.0 to fp1.0 (Or beyond if you wish)</param> public HDRColor(UFP88 red, UFP88 green, UFP88 blue, UFP88 alpha) { this.Red = red; this.Green = green; this.Blue = blue; this.Alpha = alpha; }
/// <summary> /// Initializes a new instance of a colour /// </summary> /// <param name="red">Red component, from fp0.0 to fp1.0 (Or beyond if you wish)</param> /// <param name="green">Green component, from fp0.0 to fp1.0 (Or beyond if you wish)</param> /// <param name="blue">Blue component, from fp0.0 to fp1.0 (Or beyond if you wish)</param> public HDRColor(UFP88 red, UFP88 green, UFP88 blue) : this(red, green, blue, UFP88.ONE) { /* Nothing to add. */ }