-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy patha03_lewandn.py
64 lines (59 loc) · 1.72 KB
/
a03_lewandn.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
################################################################################
# Name: Nick Lewand
# Username: lewandn
# Repo link: https://github.com/Berea-College-CSC-226/a03-master-sp23.git
# Google Doc link: https://docs.google.com/document/d/17-xZx4gKxhlT2_8qPZ647krFdcomP5ySS_NfVP8qqI4/edit#
########################################################################################
import turtle
wn = turtle.Screen() # general setup stuff
chonk = turtle.Turtle()
chonk.speed(10)
chonk.pensize(10)
wn.colormode(255)
wn.bgcolor(0,213,255)
def cloud(): # first cloud
for i in range (1):
chonk.penup()
chonk.goto(-250,-50)
chonk.pendown()
chonk.pencolor("white")
chonk.fillcolor("white")
chonk.begin_fill()
chonk.circle(75,-200)
chonk.left(90)
chonk.circle(75,-140)
chonk.left(90)
chonk.circle(75,-200)
chonk.back(200)
chonk.end_fill()
def cloud2(): # second cloud
for i in range (2):
chonk.penup()
chonk.goto(150, -215)
chonk.pendown()
chonk.pencolor("white")
chonk.fillcolor("white")
chonk.begin_fill()
chonk.circle(75, -200)
chonk.left(90)
chonk.circle(75, -140)
chonk.left(90)
chonk.circle(75, -200)
chonk.back(200)
chonk.end_fill()
def sun(): # making the sun
for i in range(3):
chonk.penup()
chonk.goto(400,300)
chonk.pendown()
chonk.pencolor("yellow")
chonk.fillcolor("yellow")
chonk.begin_fill()
chonk.circle(100,360)
chonk.end_fill()
def main():
wn.exitonclick()
cloud()
cloud2()
sun()
main()