color = c;\r
thick = t;\r
}\r
+ public static readonly Stroke null_line = new Stroke(Color.null_color, 0);\r
+ public static readonly Stroke hair_line = new Stroke(Color.white, 1);\r
}\r
\r
public partial class Line : Shape\r
\r
public Line()\r
{\r
+ fill = Color.white;\r
+ stroke = Stroke.hair_line;\r
set(0,0,0,0);\r
}\r
public Line(double x1, double y1, double x2, double y2)\r
{\r
+ fill = Color.white;\r
+ stroke = Stroke.hair_line;\r
set(x1, y1, x2, y2);\r
}\r
public Line(Point v1, Point v2)\r
{\r
+ fill = Color.white;\r
+ stroke = Stroke.hair_line;\r
set(v1, v2);\r
}\r
public Line set(double x1, double y1, double x2, double y2)\r
\r
public Rectangle()\r
{\r
+ fill = Color.white;\r
+ stroke = Stroke.null_line;\r
set(0,0);\r
}\r
public Rectangle(double wid, double hei)\r
{\r
+ fill = Color.white;\r
+ stroke = Stroke.null_line;\r
set(wid, hei);\r
}\r
public Rectangle(Rectangle another)\r
{\r
+ fill = Color.white;\r
+ stroke = Stroke.null_line;\r
v1 = another.v1;\r
v2 = another.v2;\r
}\r
\r
public Ellipse()\r
{\r
+ fill = Color.white;\r
+ stroke = Stroke.null_line;\r
set(0,0);\r
}\r
public Ellipse(double wid, double hei)\r
{\r
+ fill = Color.white;\r
+ stroke = Stroke.null_line;\r
set(wid, hei);\r
}\r
\r
\r
public Polygon()\r
{\r
+ fill = Color.white;\r
+ stroke = Stroke.null_line;\r
vertices = new System.Collections.Generic.List<Point>();\r
}\r
public Polygon(double[] verts)\r
{\r
+ fill = Color.white;\r
+ stroke = Stroke.null_line;\r
vertices = new System.Collections.Generic.List<Point>();\r
for (int i=0; i < verts.Length; i+=2)\r
{\r
}\r
public Polygon(Point[] verts)\r
{\r
+ fill = Color.white;\r
+ stroke = Stroke.null_line;\r
vertices = new System.Collections.Generic.List<Point>();\r
foreach (Point p in verts)\r
{\r