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

David Art Christmas Sock #10

Merged
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
37 changes: 37 additions & 0 deletions drawfunctions/david_akim_christmas_sock.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
from turtle import Turtle


def draw_christmas_sock():
turtle = Turtle()
turtle.hideturtle()

# top sock part
turtle.up()
turtle.goto(125, 50)
turtle.down()
turtle.rt(-25)
turtle.fd(40)
turtle.circle(-5, 90)
turtle.fd(15)
turtle.circle(-5, 90)
turtle.fd(40)
turtle.circle(-5, 90)
turtle.fd(15)
turtle.circle(-5, 90)
turtle.up()
# bottom sock part
turtle.goto(171, 42)
turtle.begin_fill()
turtle.down()
turtle.color('red')
turtle.rt(90)
turtle.fd(50)
turtle.circle(-10, 90)
turtle.fd(50)
turtle.circle(-15, 180)
turtle.fd(15)
turtle.circle(10, 90)
turtle.fd(20)
turtle.rt(90)
turtle.fd(35)
turtle.end_fill()
3 changes: 2 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
from turtle import exitonclick
from drawfunctions import dominic_duffin, david_akim, satoshi_s, teri_eyenike, david_akim_present_2024
from drawfunctions import dominic_duffin, david_akim, satoshi_s, teri_eyenike, david_akim_present_2024, david_akim_christmas_sock

dominic_duffin.christmas_tree()
david_akim.star()
satoshi_s.base()
teri_eyenike.draw_shape()
david_akim_present_2024.draw_present()
david_akim_christmas_sock.draw_christmas_sock()

exitonclick()