Beispiel #1
0
 /// <summary>
 /// Set the lifetimes (and interpolate the percentages linearely) (in s)
 /// </summary>
 /// <param name="lifetimes"></param>
 public void SetAverageLifetimes(params float[] lifetimes)
 {
     this.AverageLifetimes = PercentageArray <float> .FromArray(lifetimes);
 }
Beispiel #2
0
 /// <summary>
 /// Set the scales (and interpolate the percentages linearely)
 /// </summary>
 /// <param name="scales"></param>
 public void SetScales(params float[] scales)
 {
     this.ScalePercentages = PercentageArray <float> .FromArray(scales);
 }
Beispiel #3
0
 /// <summary>
 /// Set the alpha values (in [0,1]) (and interpolate the percentages linearely)
 /// </summary>
 /// <param name="scales"></param>
 public void SetAlphas(params float[] scales)
 {
     this.AlphaPercentages = PercentageArray <float> .FromArray(scales);
 }
Beispiel #4
0
 /// <summary>
 /// Set the colours (and interpolate the percentages linearely)
 /// </summary>
 /// <param name="colors"></param>
 public void SetColors(params Color[] colors)
 {
     this.ColorPercentages = PercentageArray <Color> .FromArray(colors);
 }