public Color32 GetCritterHappinessColor(Critter critter, Hex hab) { float happiness = critter.SurvivalScore(hab); Color32 baseColor; int val = (int)(5 * happiness); if (val > 40) { val = 40; } if (val < -200) { val = -200; } byte red = (byte)(200 - val); byte green = (byte)(200 + val); baseColor = new Color32(red, green, 60, 255); return baseColor; }