示例#1
0
        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));
        }
示例#2
0
 public static float percentDay()
 {
     return(((float)(GSS.getTime().Minute + GSS.getTime().Hour * 60)) / (24f * 60f));
 }