Cole LaPlante Project 4
The purpose of this project was to become more familiar with lists and graphics objects. We had to create a scene in a very different way than we have before, using lists to compile all the simple shapes to create a complex one. We then had to use return functions to be able to draw the complex shapes all together in a scene.
I had a lot of trouble with making the complex images scalable with the new shape functions and I think the new coordinate system, and I just couldn't figure out a way to make the scale factor create a complex image in a larger size. I did trial and error for hours, but I don't know why I couldn't make it work because it always seemed correct; I don't think I can wrap my head around how the scaling really works with shapes that aren't simple.
I was successful in creating my surrealist scene, but I usually don't like making the individual small shapes without knowing the design beforehand, so when I made the scene, I realized it would be extremely hard and somewhat illogical to scale the complex shapes I had (house, hills, sun, hay). I tried with the house, but inserting *scale just destroyed the picture. I made the command line argument decide whether the picture would be night or day, because I didn't see any other options that made sense and would largely keep the picture the same.
- My understanding is that an object is a string that python understands if you import that object into the code. They have parameters and pre-set methods, and the way that the object performs depends on the values that you input into it.
- Either before or after you draw the object, you have to type the name you have given to that specific object that will be drawn (rect = gr.Rectangle()), and then use rect.setFill("color").
- The variable is the window that the object will be drawn in. You have to create a window and assign the objects that you want to be drawn to that window for it to work.
- I chose Louis P. Grumieaux, because he drew a simple house with hills and nature in the background, and I wanted to draw a scene that didn't have people in it because I have no idea how I would draw people on python.
I learned that lists can be helpful with creating complex scenes, and I learned how to use graphics plus objects. I think that I also learned how hard it is to create the scaling for very complex images.