a pattern of triangles and squares