public static void DrawSquare(FoxDraw foxDraw) { foxDraw.FillColor(Colors.Green); var points = new List <Point>(); points.Add(new Point(257, 170)); points.Add(new Point(267, 170)); points.Add(new Point(267, 160)); points.Add(new Point(257, 160)); foxDraw.DrawPolygon(points); }
public static void DrawCenteredSquare(FoxDraw foxDraw) { var points = new List <Point>(); points.Add(new Point(195, 195)); points.Add(new Point(195, 205)); points.Add(new Point(205, 205)); points.Add(new Point(205, 195)); foxDraw.FillColor(Colors.Green); foxDraw.DrawPolygon(points); }
public static void SquareDrawer(FoxDraw foxDraw) { var points = new List <Point>(); points.Add(new Point(145, 155)); points.Add(new Point(155, 155)); points.Add(new Point(155, 145)); points.Add(new Point(145, 145)); foxDraw.FillColor(Colors.Green); foxDraw.DrawPolygon(points); }
public MainWindow() { InitializeComponent(); var foxDraw = new FoxDraw(canvas); var points = new List <Point>(); points.Add(new Point(40, 70)); points.Add(new Point(50, 70)); points.Add(new Point(50, 80)); points.Add(new Point(40, 80)); foxDraw.FillColor(Colors.Green); foxDraw.DrawPolygon(points); }