Beispiel #1
0
 public Diamond(double x, double y, double width, double height, Brush fillColor, Brush strokeColor, double strokeThickness)
 {
     pos = new Cords2(x, y);
     this.ShapeHeight     = height;
     this.ShapeWidth      = width;
     this.Fill            = fillColor;
     this.Stroke          = strokeColor;
     this.StrokeThickness = strokeThickness;
 }
Beispiel #2
0
 public Triangle(double x, double y, double width, double height, Brush fillColor, Brush strokeColor, double strokeThickness, bool isRight)
 {
     pos = new Cords2(x, y);
     this.ShapeHeight     = height;
     this.ShapeWidth      = width;
     this.Fill            = fillColor;
     this.Stroke          = strokeColor;
     this.StrokeThickness = strokeThickness;
     this.isRightTriangle = isRight;
 }