added circles
This commit is contained in:
19
Muehle.java
19
Muehle.java
@@ -43,7 +43,8 @@ public class Muehle extends Application {
|
||||
public Pane draw_game_board() {
|
||||
|
||||
Color bg_color = Color.rgb(255,255,0);
|
||||
Color stroke_color = Color.rgb(250, 250, 50);
|
||||
Color stroke_color = Color.RED;
|
||||
Double circle_offset = 100.0;
|
||||
|
||||
ArrayList<Shape> shapes = new ArrayList<Shape>();
|
||||
|
||||
@@ -61,7 +62,23 @@ public class Muehle extends Application {
|
||||
shapes.add(bg);
|
||||
|
||||
|
||||
Rectangle circle1 = new Rectangle(topLeftX,topLeftY,topRightX,topRightY);
|
||||
circle1.setStroke(stroke_color);
|
||||
circle1.setStrokeWidth(10);
|
||||
circle1.setFill(new Color(0.0,0.0,0.0,0.0));
|
||||
shapes.add(circle1);
|
||||
|
||||
Rectangle circle2 = new Rectangle(topLeftX + 100,topLeftY + 100,topRightX - 200,topRightY - 200);
|
||||
circle2.setStroke(stroke_color);
|
||||
circle2.setStrokeWidth(10);
|
||||
circle2.setFill(new Color(0.0,0.0,0.0,0.0));
|
||||
shapes.add(circle2);
|
||||
|
||||
Rectangle circle3 = new Rectangle(topLeftX + 200,topLeftY + 200,topRightX - 400,topRightY - 400);
|
||||
circle3.setStroke(stroke_color);
|
||||
circle3.setStrokeWidth(10);
|
||||
circle3.setFill(new Color(0.0,0.0,0.0,0.0));
|
||||
shapes.add(circle3);
|
||||
|
||||
for (int i = 0; i < shapes.size() ;i++ ) {
|
||||
board.getChildren().add(shapes.get(i));
|
||||
|
||||
Reference in New Issue
Block a user