public TriStruct(Shape.Triangle t, int x, int y, Pen p) { tri = t; this.x = x; this.y = y; this.p = p; }
public void render(Shape.Triangle triangle, int thickness = 1, Brush color = null) { Pen pcolor; if (color == null) { pcolor = new Pen(Brushes.Black, thickness); } else { pcolor = new Pen(color, thickness); } TriStruct ts = new TriStruct(triangle, pcolor); renderlist.Add(ts); renderct++; }
public TriStruct(Shape.Triangle t, Pen c) { tri = t; p = c; }