target/classes/breakout/Brick.java
static void drawBricks(Group a, Group myBricks) {
        for (int j = 0; j < NUM_ROWS; j++) {
            for (int i = 0; i < PER_ROW; i++) {
                Rectangle r = new Rectangle(BRICK_WIDTH - ROW_SEPARATION, BRICK_HEIGHT - COLUMN_SEPARATION);
                r.setX(i * BRICK_WIDTH);
                r.setY(j * BRICK_HEIGHT + (double) BRICK_OFFSET);
                r.setFill(BRICK_COLOR);
                myBricks.getChildren().add(r);
            }
        }
        a.getChildren().add(myBricks);
    }
// DRAW J ROWS OF I BRICKS
DRAW J ROWS OF I BRICKS
DRAW J ROWS OF I BRICKS
static void drawBricks(Group a, Group myBricks) {
        for (int j = 0; j < NUM_ROWS; j++) {
            for (int i = 0; i < PER_ROW; i++) {
                Rectangle r = new Rectangle(BRICK_WIDTH - ROW_SEPARATION, BRICK_HEIGHT - COLUMN_SEPARATION);
                r.setX(i * BRICK_WIDTH);
                r.setY(j * BRICK_HEIGHT + (double) BRICK_OFFSET);
                r.setFill(BRICK_COLOR);
                myBricks.getChildren().add(r);
            }
        }
        a.getChildren().add(myBricks);
    }
static void drawBricks ( Group a , Group myBricks ) { for ( int j = 0 ; j < NUM_ROWS ; j ++ ) { for ( int i = 0 ; i < PER_ROW ; i ++ ) { Rectangle r = new Rectangle ( BRICK_WIDTH - ROW_SEPARATION , BRICK_HEIGHT - COLUMN_SEPARATION ) ; r . setX ( i * BRICK_WIDTH ) ; r . setY ( j * BRICK_HEIGHT + ( double ) BRICK_OFFSET ) ; r . setFill ( BRICK_COLOR ) ; myBricks . getChildren ( ) . add ( r ) ; } } a . getChildren ( ) . add ( myBricks ) ; }
DRAW J ROWS OF I BRICKS
DRAW J ROWS OF I BRICKS