using XFEEDToolBox.Core.Galaxy;
namespace XFEEDToolBox.Core.Rendering;
public static class LocalSystemStellarStyle
{
// Uses the already pinned original stellar classification. Unknown types
// stay neutral; they must not be presented as a measured red dwarf.
public static StarColour Colour(uint? nativeType)=>nativeType switch
{
<=6=>StellarAppearance.Palette[(int)nativeType.Value],
7=>StellarAppearance.Palette[7],8 or 11=>StellarAppearance.Palette[8],
9 or 10=>StellarAppearance.Palette[5],>=12 and <=16=>StellarAppearance.Palette[0],
>=17 and <=24=>StellarAppearance.Palette[6],>=25 and <=39=>StellarAppearance.Palette[10],
40=>StellarAppearance.Palette[11],_=>new(255,225,190)
};
}
using XFEEDToolBox.Core.Galaxy;
namespace XFEEDToolBox.Core.Rendering;
public static class LocalSystemStellarStyle
{
// Uses the already pinned original stellar classification. Unknown types
// stay neutral; they must not be presented as a measured red dwarf.
public static StarColour Colour(uint? nativeType)=>nativeType switch
{
<=6=>StellarAppearance.Palette[(int)nativeType.Value],
7=>StellarAppearance.Palette[7],8 or 11=>StellarAppearance.Palette[8],
9 or 10=>StellarAppearance.Palette[5],>=12 and <=16=>StellarAppearance.Palette[0],
>=17 and <=24=>StellarAppearance.Palette[6],>=25 and <=39=>StellarAppearance.Palette[10],
40=>StellarAppearance.Palette[11],_=>new(255,225,190)
};
}