Example #1
0
 private static Vector4 CalcColor(
     StellarType type,
     int subtype,
     KeyValuePair <StellarType, Vector4>[] colorTable)
 {
     return(Vector4.Lerp(StarHelper.CalcColor(type, colorTable), StarHelper.CalcColor((StellarType)Math.Min(6, (int)(type + 1)), colorTable), (float)subtype / 10f));
 }
Example #2
0
 public static Vector4 CalcModelColor(StellarClass stellarClass)
 {
     return(StarHelper.CalcColor(stellarClass.Type, stellarClass.SubType, StarHelper.ModelColorTable));
 }