Exemplo n.º 1
0
        protected override void Update(GameTime gameTime)
        {
            base.Update(gameTime);

            // Calculate Sky Color
            Color sky = Utilitys.GetColorBasedOnTimeOfDay(DateTime.Now.Hour, Color.CornflowerBlue, Color.DarkGray);

            // Change viewport
            ViewportColor = sky;
        }