Skip to content

Commit

Permalink
adding a snowman to drawfunctions
Browse files Browse the repository at this point in the history
  • Loading branch information
ClJarvis committed Oct 12, 2024
1 parent 9e407c2 commit 695abe8
Show file tree
Hide file tree
Showing 2 changed files with 81 additions and 1 deletion.
79 changes: 79 additions & 0 deletions drawfunctions/chris_j.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
from turtle import Turtle
from turtle import Screen

def draw_snowman():

turtle = Turtle()
screen = Screen()

turtle.hideturtle()
turtle.penup()
turtle.setposition((180, -10))
turtle.pendown()
turtle.color(("lightblue"), ("azure"))
turtle.begin_fill()
turtle.circle(26)
turtle.penup()
turtle.setposition((180, 42))
turtle.pendown()
turtle.circle(13)
turtle.penup()
turtle.setposition((180, 68))
turtle.pendown()
turtle.circle(8)
turtle.end_fill()
turtle.penup()
#draw face and buttons
turtle.setposition((178, 75))
turtle.pendown()
turtle.dot(2, "blue")
turtle.penup()
turtle.setposition((184, 75))
turtle.pendown()
turtle.dot(2, "blue")
turtle.penup()
turtle.setposition((180, 72))
turtle.pendown()
turtle.dot(3, "orange")
turtle.penup()
turtle.setposition((180, 50))
turtle.pendown()
turtle.dot(4, "black")
turtle.penup()
turtle.setposition((180, 60))
turtle.pendown()
turtle.dot(4, "black")
turtle.penup()
turtle.setposition((180, 30))
turtle.pendown()
turtle.dot(6, "black")
turtle.penup()
turtle.setposition((180, 20))
turtle.pendown()
turtle.dot(6, "black")
turtle.penup()
turtle.setposition((180, 10))
turtle.pendown()
turtle.dot(6, "black")

#Draw hat

turtle.penup()
turtle.setposition((176, 80))
turtle.pendown()
turtle.color("gray")
turtle.begin_fill()
turtle.forward(10)
turtle.left(90)
turtle.forward(8)
turtle.left(90)
turtle.forward(10)
turtle.left(90)
turtle.forward(8)
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, chris_j

dominic_duffin.christmas_tree()
david_akim.star()
satoshi_s.base()
teri_eyenike.draw_shape()
david_akim_present_2024.draw_present()
chris_j.draw_snowman()

exitonclick()

0 comments on commit 695abe8

Please sign in to comment.