Create RotatingSquareWithFunction.py

Use functions to draw rotating squares.