diff --git a/README.md b/README.md index 7b48840..f44b645 100644 --- a/README.md +++ b/README.md @@ -12,9 +12,13 @@ I will be making a butterfly fluttering its wings. The view will be from the fro (Include your planning here, including your project milestone.) ### Milestone 1 -Create function for the most used shapes in the project. This will include an oval, rectangle and triangle function. I will also have a fly fucntion that will help when i begin drawing. +Create function for the most used shapes in the project. This will include an oval and wing function that uses the ovals. ### Milestone 2 -Create background. I want to have a solid color background. +Create a function that actually draw the body of the butterfly using the other functions I wrote prior. ### Milestone 3 +Create a function that draws the wings of the butterfly using the other functions. + +### Milestone 4 +Change the bakground color. diff --git a/drawing.py b/drawing.py index 22bc4fb..13a6e05 100644 --- a/drawing.py +++ b/drawing.py @@ -12,7 +12,8 @@ from superturtle.movement import fly, no_delay import turtle screen = turtle.Screen() -screen.bgcolor("cadetblue") +screen.bgcolor("lightblue") +turtle.speed(10) def draw_oval(width, height, color): fillcolor(color) @@ -32,21 +33,22 @@ def draw_wing(x, y, width, height, color, angle): def draw_body(): penup() - goto(0,-100) - setheading(90) + goto(0,25) + setheading(135) pendown() - draw_oval(10,45,"black") + draw_oval(10,100,"black") def draw_butterfly(): + + + draw_wing(-10,-40, 50, 120, "indianred",50) + draw_wing(-10,-75, 40, 90, "palevioletred", 60) + + draw_wing(10,25, 50, 120, "indianred",220) + draw_wing(10,-30, 40, 90, "palevioletred", 210) + draw_body() - draw_wing(-10,-60, 60, 120, "purple",120) - draw_wing(-10,-40, 40, 60, "pink", 130) - - draw_wing(10,-60, 60, 120, "purple",120) - draw_wing(10,-40, 40, 60, "pink", 130) - - draw_butterfly()