//     Your Name Here
//       the date
// CSCI 201 assignment 3: the mosaic

#include "rect.h"
using namespace std;

SimpleWindow MyWin("My shape", 17.0, 9.0);

int ApiMain() {

  MyWin.Open() ;

  // Draw a rectangle made up of red and blue squares
  for (int i=1; i<=5; i++) {
    for (int j=1; j<=7; j++) {
      if (i%2 != 0) {
        RectangleShape R1(MyWin,  i, j, Blue, 0.75, 0.75) ;
        R1.Draw();
      }
      else {
        RectangleShape R1(MyWin,  i, j, Red, 0.75, 0.75) ;
        R1.Draw();
      }
    }
  }

  return 0 ;
}

int ApiEnd() {
  MyWin.Close() ;
  return 0 ;
}
