public static void Drawlinestocenter(FoxDraw foxDraw) { foxDraw.StrokeColor(Colors.BlueViolet); foxDraw.DrawLine(10, 10, 262, 175); foxDraw.DrawLine(20, 20, 262, 175); foxDraw.DrawLine(30, 30, 262, 175); }
public static void GoToCenter(FoxDraw foxDraw, int x, int y) { { foxDraw.StrokeColor(Colors.Cyan); for (int i = 1; i < 4; i++) { foxDraw.DrawLine(x * i, y * i, 260, 175); } } }
public static void DrawLines(FoxDraw foxDraw, int x, int y) { int half = 150; //int rei = 0; //int full = 300; var startPoint = new Point(x, y); var endPoint = new Point(half, half); foxDraw.DrawLine(startPoint, endPoint); foxDraw.StrokeColor(Colors.Black); }
public static void DrawLiner(FoxDraw foxDraw) { foxDraw.StrokeColor(Colors.Green); for (int i = 1; i < 4; i++) { foxDraw.DrawLine((25 + (i * 50)), (50 + (i * 15)), 180, 180); } // create a line drawing function that takes 2 parameters: // the x and y coordinates of the line's starting point // and draws a line from that point to the center of the canvas. // draw 3 lines with that function. }
public static void DrawThreeLinesToTheCenter(FoxDraw foxDraw, double xParameter, double yParameter) { double x1 = xParameter; double y1 = yParameter; for (int i = 1; i < 4; i++) { foxDraw.StrokeColor(Colors.Red); foxDraw.DrawLine(x1, (y1 + 40), 201, 201); x1 += i * 60; } }
public static void DrawALineToCenter(FoxDraw foxDraw, int x, int y) { foxDraw.StrokeColor(Colors.Green); foxDraw.DrawLine(x, y, foxDraw.Canvas.Width / 2, foxDraw.Canvas.Height / 2); }