Exemplo n.º 1
0
 /// <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;
 }
Exemplo n.º 2
0
 /// <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;
 }
Exemplo n.º 3
0
 /// <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. */
 }
Exemplo n.º 4
0
 /// <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. */
 }