Recursive Art ( Due 02 Mar 2018 )

In this assignment you will write a program that will produce figures using recursion. Study the code on Fractals to see how to draw recursive figures. Choose a drawing area of 800 pixels by 800 pixels. Prompt the user to enter the level of recursion between the bounds of 1 and 6.

Your sample output session will look as follows:

Recursive Art

Enter a level of recursion between 1 and 6: 4 
Higher levels of recursion mean more complex drawing. You must use different colors.

You will be working on this assignment by yourself. You have complete artistic freedom. You may borrow elements of the recursive figures that we have drawn but your work has to be unique.

The file that you will be turning in will be called Art.py. We are looking for a clean and structured design. The file will have a header of the following form:

#  File: Art.py

#  Description:

#  Student Name:

#  Student UT EID:

#  Course Name: CS 313E

#  Unique Number: 

#  Date Created:

#  Date Last Modified:

After you have run your code and made sure that it works please make the following modifications:

Your first line of code should be:

import os

Then in main() write this line of code after you prompt the
user for the number of levels:

turtle.tracer(10000)

Then in main() remove any lines of the form:

turtle.done()

or

turtle.mainloop()

The final lines of main should include the lines

outName = os.path.basename(__file__)[:-2]+'eps'
turtScrn = turtle.getscreen()
turtScrn.getcanvas().postscript(file=outName)

Use the Canvas system to submit your Art.py file. We should receive your work by 11 PM on Friday, 02 Mar 2018. There will be substantial penalties if you do not adhere to the guidelines. Remember Python is case sensitive. The name of your file must match exactly what we have specified.

References