Skip to content

Commit

Permalink
Added David art - Star (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
david-001 authored Oct 5, 2023
1 parent 431998d commit b1ebdaa
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
24 changes: 24 additions & 0 deletions drawfunctions/david_akim.py
Original file line number Diff line number Diff line change
@@ -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()
3 changes: 2 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
@@ -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()

0 comments on commit b1ebdaa

Please sign in to comment.