示例#1
0
        private static void DrawSunRing(RenderWindow app, Sun sun)
        {
            var sunRing      = CreateRing(app, 240, new Color(255, 255, 255), true);
            var sunPegPoints = CreatePegPoints(app, sunRing, 56, (Math.PI * 2) / 56);

            Array.Reverse(sunPegPoints);
            sunPegPoints[sun.Get() - 1].FillColor = new Color(255, 0, 0);
            foreach (var p in sunPegPoints)
            {
                app.Draw(p);
            }
        }