A reminder on how to commit:
(40 Points) Function versions of pizza, polygon, and star. Place all of your function definitions in one Python source file, pizzaPolyStar.py, already in the Session07 project.
def main(): win1 = GraphWin("Window 1", 400, 350) win2 = GraphWin("Window 2", 400, 350) pizza(win1, Point(50, 50), 40, 10) pizza(win1, Point(150, 50), 45, 3) star(win1, Point(250, 50), 35, 7, 3) polygon(win2, Point(100, 200), 75, 7) star(win2, Point(300, 200), 100, 17, 5) message = Text(Point(200, 340), "Click this window to end program.") message.draw(win1) win1.getMouse() win1.close() win2.close() main()
star()
function working, can you change the body of your
polygon()
function to just use a single line that invokes your
star()
function?
You should be able to create some interesting patterns by calling your function with various parameters (in a 1000 by 1000 window). You might try (one at a time) the examples are below, along with output from the first one.
Commit your Session07 project, with an appropriate comment, to your repository.