/// <summary> /// Creates a new rectangle, whose upper left corner is (x1,y1) and lower right corner is (x2,y2). Horizontal and vertical /// lines will be drawn using the 'x' character by default. /// </summary> /// <param name="x1">Starting point for X</param> /// <param name="y1">Starting pint for Y</param> /// <param name="x2">Ending Point for X</param> /// <param name="y2">Ending Point for Y</param> public Rectangle(int x1, int y1, int x2, int y2) { this.Properties = new ElementProperties(x1, y1, x2, y2); }
/// <summary> /// Creates a new line from point (x1,y1) to (x2, y2), /// only Horizontal and Vertical lines are supported /// </summary> /// <param name="x1">Starting point for X</param> /// <param name="y1">Starting pint for Y</param> /// <param name="x2">Ending Point for X</param> /// <param name="y2">Ending Point for Y</param> /// <param name="brush">character to be draw default is 'x'</param> public Line(int x1, int y1, int x2, int y2, string brush = "x") { this.Properties = new ElementProperties(x1, y1, x2, y2, brush); }
/// <summary> /// fills the entire area connected to (x,y) with "colour" c. /// The behaviour of this is the same as that of the "bucket fill" tool in paint programs /// </summary> /// <param name="x1">x point to start filling</param> /// <param name="y1">y point to start filling</param> /// <param name="brushChar"></param> public BucketFill(int x1, int y1, string brushChar = "o") { this.Properties = new ElementProperties(x1, y1, brushChar); }