The task for this project was to create an interactive program that would allow the user to draw images. The user had to be able to control the style, color, and shape being drawn. The user also had to be able to control where the object was drawn. In addition, the program had to be able to undo the last object drawn.
The user must choose a shape from the shapes menu for each object drawn. The user may also choose to change any of the settings in the other menus as well. These include style, color and thickness of the lines. If the user chooses not to change the color, style, or width, the default values will be selected.
My main loop is a while loop. The loop takes the mouse click and then loops through the menuList. When python finds the selection it searches for it in the action dictionary and then executes the appropriate function.
My friend used the program and found it rather user-friendly. His only complaint was that you could not scale the size of some of the objects. He also said that it would have been nice if the l-systems did not take so long to draw. Other than that, my friend said that the program was pretty self explanitory.
For an extension, I added two more L-systems. Of my three l-systems, one is a tree, one is a vine and one is a bush. I also gave the user the ability to draw a triangle. As another extension, I gave the user the ability to set the width of the lines. The user can chose between a thin line (which is the default) and a thick line.