예제 #1
0
        void DrawRadar()
        {
            int xCenter = 120;
            int yCenter = 170;

            var radarColor = Color.LawnGreen;

            for (int i = 1; i < 5; i++)
            {
                graphics.DrawCircleQuadrant(xCenter, yCenter, 25 * i, 0, radarColor);
                graphics.DrawCircleQuadrant(xCenter, yCenter, 25 * i, 1, radarColor);
            }

            for (int i = 0; i < 7; i++)
            {
                graphics.DrawLine(xCenter, yCenter, 105, (float)(i * Math.PI / 6), radarColor);
            }
        }