Figure 12: The lengthen pattern algorithm


1.  Copy pattern to a temp_pattern
2.  Blank out the pattern
3.  Put 'size' new elements in pattern
4.  new_width = current_width + size
5.  Copy temp_pattern on to the end of pattern
6.  current_width = current_width + size
7.  max_width = max_width + size
8.  index = 0