Skip to content

Commit

Permalink
David Art Christmas Sock (#10)
Browse files Browse the repository at this point in the history
* Add David Christmas Sock

* Add David Christmas Sock fix
  • Loading branch information
david-001 authored Oct 12, 2024
1 parent 9e407c2 commit 332cbab
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
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()

0 comments on commit 332cbab

Please sign in to comment.