def METHOD_NAME(self):
    """ Create the actual rectangles on teh appropriate layers
    using the position list of the corners. """
    pl = self.position_list  # position list
    for index in range(len(pl) - 1):
        # if we have x motion
        if pl[index][0] != pl[index + 1][0]:
            line_length = pl[index + 1][0] - pl[index][0]
            offset = [pl[index][0],
                      pl[index][1] - 0.5 * self.layer_width]
            if line_length < 0:
                offset = [offset[0] + line_length,
                          offset[1]]
            self.add_line(layer_name=self.layer_name,
                          length=abs(line_length),
                          offset=offset,
                          orientation="horizontal",
                          layer_width=self.layer_width)
        # if we have y motion
        elif pl[index][1] != pl[index + 1][1]:
            line_length = pl[index + 1][1] - pl[index][1]
            offset = [pl[index][0] - 0.5 * self.layer_width,
                      pl[index][1]]
            if line_length < 0:
                offset = [offset[0],
                          offset[1] + line_length]
            self.add_line(layer_name=self.layer_name,
                          length=abs(line_length),
                          offset=offset,
                          orientation="vertical",
                          layer_width=self.layer_width)