Creates square, rectangular and triangular patterns.