public static Color getSunPositionColor() { double td = Math.Cos(GSS.percentDay() * MathHelper.TwoPi) + 1; int timeColorValue = 255 - ((byte)((int)(td * 100))); return(new Color(timeColorValue, timeColorValue, timeColorValue)); }
public static float percentDay() { return(((float)(GSS.getTime().Minute + GSS.getTime().Hour * 60)) / (24f * 60f)); }