void QuadrantTest() { graphics.Clear(); graphics.DrawCircleQuadrant(64, 64, 60, 0, Color.Yellow, true); graphics.DrawCircleQuadrant(64, 64, 60, 1, Color.Blue, true); graphics.DrawCircleQuadrant(64, 64, 60, 2, Color.Cyan, true); graphics.DrawCircleQuadrant(64, 64, 60, 3, Color.LawnGreen, true); graphics.Show(); }
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); } }