//useful for things like basilisk spines which forces hair to act like scales
 public static HairFurColors NearestHairFurColor(Tones currentTone)
 {
     //you really should check for this first.
     if (Tones.IsNullOrEmpty(currentTone))
     {
         return(NO_HAIR_FUR);
     }
     return(NearestHairFurColor(currentTone.rgbValue));
 }
 internal static Tones GetNageUnderToneFrom(Tones primary)
 {
     if (nagaLowerBodyMapper.ContainsKey(primary))
     {
         return(nagaLowerBodyMapper[primary]);
     }
     else
     {
         return(defaultNagaUnderTone);
     }
 }
        internal static HairFurColors ToNearestSpineColor(HairFurColors currentColor, Tones currentSkinTone)
        {
            Color color = Color.FromArgb((currentColor.rgbValue.R + currentSkinTone.rgbValue.R) / 2, (currentColor.rgbValue.G + currentSkinTone.rgbValue.G) / 2,
                                         (currentColor.rgbValue.B + currentSkinTone.rgbValue.B) / 2);

            return(HairFurColors.NearestHairFurColor(color));
        }
Example #4
0
 public static bool IsNullOrEmpty(Tones tone)
 {
     return(tone == null || tone == NOT_APPLICABLE);
 }