Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Christina adding tree present function to main.py #13

Merged
merged 4 commits into from
Oct 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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()