We have been covering for loops, turtle, and functions for a week now. Today is our last day of focusing on just these topics. On Tuesday, we will move on. It is very important that the structure of these makes sense to you. So, if by the end of the day you still feel like you don't understand these structures, please let me know ASAP.
In a file called Nautilus.py, write a program that draws a series of overlapping squares. These squares should all begin at the same spot (the center of the window). However, each subsequent square should be slightly larger than the previously drawn square. In addition, each subsequent square should be drawn slightly askew from the previous square, to achieve a sea-shell like appearance.
In a file called Curve.py, write a program that draws a series of straight lines to approximate a curve. Consider the following lines.
A curve of this type can be drawn by connecting points that are some distance along line #1, to a point that is the same distance along line #2, as seen in the following picture:
If you draw enough of these lines, you can approximate what is known as a Bezier curve, which is a very well known and studied construct in computer graphics.