- generate the following 8 patterns
- given any pattern, create functions that can,
- Transpose
- Flip Horizontally
- Flip Vertically -- f(Transpose, Flip Horizontally)
- create Mirror Image
pattern = \
*....
.*...
..*..
...*.
....*
transpose(pattern) = \
*....
.*...
..*..
...*.
....*
Flip Horizontally(pattern) = \
....*
...*.
..*..
.*...
*....
Create Mirror(pattern) = \
*.......*
.*.....*.
..*...*..
...*.*...
....*....
...*.*...
..*...*..
.*.....*.
*.......*
comopse(Create Mirror,Create Mirror)(pattern) = \
*.......*.......*
.*.....*.*.....*.
..*...*...*...*..
...*.*.....*.*...
....*.......*....
...*.*.....*.*...
..*...*...*...*..
.*.....*.*.....*.
*.......*.......*
.*.....*.*.....*.
..*...*...*...*..
...*.*.....*.*...
....*.......*....
...*.*.....*.*...
..*...*...*...*..
.*.....*.*.....*.
*.......*.......*