Skip to content

Commit

Permalink
Christina adding tree present function to main.py (#13)
Browse files Browse the repository at this point in the history
* add tree present function to main.py

* Add tree present function to main.py
Add .DS_Store to .gitignore

* remove .DS_Store
  • Loading branch information
christina-ml authored Oct 16, 2024
1 parent ca92629 commit 8c493f1
Show file tree
Hide file tree
Showing 3 changed files with 102 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
__pycache__
.vscode/
.vscode/
.DS_Store
98 changes: 98 additions & 0 deletions drawfunctions/christina_loiacono.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
from turtle import Turtle
from turtle import Screen

def tree_present():

turtle = Turtle()
screen = Screen()
screen.colormode(255)

turtle.hideturtle()
turtle.penup()
turtle.setposition((10, -5))
turtle.right(90)

# front of box
turtle.pendown()
turtle.begin_fill()
turtle.color((219,112,147), (219,112,147))
turtle.forward(20)
turtle.right(90)
turtle.forward(20)
turtle.right(90)
turtle.forward(20)
turtle.right(90)
turtle.forward(20)
turtle.penup()
turtle.end_fill()

# move turtle to center of box for horizontal ribbon
turtle.color((75,0,130), (138,43,226))
turtle.right(90)
turtle.forward(8)

# horizontal ribbon
turtle.pendown()
turtle.begin_fill()
turtle.forward(4)
turtle.right(90)
turtle.forward(20)
turtle.right(90)
turtle.forward(4)
turtle.right(90)
turtle.forward(20)
turtle.penup()
turtle.end_fill()

# move turtle to top right corner of box
turtle.left(90)
turtle.forward(8)

# vertical ribbon
turtle.color((75,0,130), (138,43,226))
turtle.left(90)
turtle.forward(8)

turtle.pendown()
turtle.begin_fill()
turtle.left(90)
turtle.forward(20)
turtle.right(90)
turtle.forward(4)
turtle.right(90)
turtle.forward(20)
turtle.right(90)
turtle.forward(4)
turtle.penup()
turtle.end_fill()

# bow
# right side of bow
turtle.color((75,0,130), (138,43,226))
turtle.begin_fill()
turtle.left(25)

turtle.pendown()
turtle.forward(8)
turtle.left(105)
turtle.forward(8)
turtle.left(120)
turtle.forward(10)
turtle.penup()
turtle.end_fill()

# left side of bow
turtle.color((0,0,0), (138,43,226))
turtle.begin_fill()
turtle.right(60)
turtle.forward(2)

turtle.pendown()
turtle.right(25)
turtle.forward(10)
turtle.right(120)
turtle.forward(8)
turtle.right(105)
turtle.forward(8)
turtle.penup()
turtle.end_fill()
3 changes: 2 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from turtle import exitonclick
from drawfunctions import dominic_duffin, david_akim, satoshi_s, teri_eyenike, david_akim_present_2024, david_akim_christmas_sock, chris_j
from drawfunctions import dominic_duffin, david_akim, satoshi_s, teri_eyenike, david_akim_present_2024, david_akim_christmas_sock, chris_j, christina_loiacono

dominic_duffin.christmas_tree()
david_akim.star()
Expand All @@ -8,5 +8,6 @@
david_akim_present_2024.draw_present()
david_akim_christmas_sock.draw_christmas_sock()
chris_j.draw_snowman()
christina_loiacono.tree_present()

exitonclick()

0 comments on commit 8c493f1

Please sign in to comment.