def draw_box(self, location, rgb_value):
    p1_x, p1_y, p2_x, p2_y = location

    width = p2_x - p1_x
    height = p2_y - p1_y

    for pix in range(width):
      self.draw_pixel((p1_x + pix, p1_y), rgb_value)
      self.draw_pixel((p1_x + pix, p2_y), rgb_value)

      self.draw_pixel((p1_x + pix, p1_y - 1), rgb_value) # Add thicker top
      self.draw_pixel((p1_x + pix, p2_y + 1), rgb_value) # Add thicker bottom

    for i in range(height):
      self.draw_pixel((p1_x, p1_y + i), rgb_value)
      self.draw_pixel((p2_x, p1_y + i), rgb_value)

      self.draw_pixel((p1_x - 1, p1_y + i), rgb_value) # Thicker left
      self.draw_pixel((p2_x + 1, p1_y + i), rgb_value) # Thicker right
dataset/ETHPy150Open chriskiehl/pyrobot/pyrobot.py/Robot.draw_box/original