diff --git a/drawfunctions/david_akim.py b/drawfunctions/david_akim.py new file mode 100644 index 0000000..45e59fb --- /dev/null +++ b/drawfunctions/david_akim.py @@ -0,0 +1,24 @@ +from turtle import Turtle +from turtle import Screen + +def star(): + + turtle = Turtle() + screen = Screen() + screen.colormode(255) + + turtle.hideturtle() + turtle.penup() + turtle.setposition((20, 61)) + turtle.begin_fill() + turtle.pendown() + turtle.color((255, 215, 0), (255, 215, 0)) + turtle.forward(10) + for i in range(9): + if i%2==1: + turtle.left(72) + else: + turtle.right(144) + turtle.forward(10) + turtle.penup() + turtle.end_fill() \ No newline at end of file diff --git a/main.py b/main.py index 1f0baeb..e723d94 100644 --- a/main.py +++ b/main.py @@ -1,6 +1,7 @@ from turtle import exitonclick -from drawfunctions import dominic_duffin +from drawfunctions import dominic_duffin, david_akim dominic_duffin.christmas_tree() +david_akim.star() exitonclick() \ No newline at end of file