Make an app for creating spiral designs by incrementally rotating squares in a stack.
Run the code to rotate a square by 30 degrees. Try different angles (e.g. 45 degrees):
Graphics[Rotate[Rectangle[], 30 Degree]]
Create an interface with a slider to rotate the square. Try angle ranges other than 360:
Make a stack of 10 squares rotated in 5-degree increments. Try other increments or other numbers of squares:
Graphics[{EdgeForm[White],
Table[Rotate[Rectangle[], r 5 Degree], {r, 0, 10}]}]
Create an interface for changing the rotation increment between 0 and 45 degrees:
Add another control for changing the number of squares:
Make a sequence of progressively smaller squares. Try increments other than 5 degrees:
Graphics[{EdgeForm[White],
Table[Scale[Rotate[Rectangle[], 5 r Degree], 1 - r/10], {r, 0,
10}]}]
Put everything together. Find flower-like and other patterns: