-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add David Christmas Sock * Add David Christmas Sock fix
- Loading branch information
Showing
2 changed files
with
39 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |