-
Notifications
You must be signed in to change notification settings - Fork 153
/
Copy path1.0_Jedi_Training.py
53 lines (40 loc) · 1.28 KB
/
1.0_Jedi_Training.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
'''
1.0 Jedi Training (17pts) Name:________________
1. Define Forking (1pt):
2. Define Cloning (1pt):
3. Define Branching (1pt):
4. Define Committing (1pt):
5. Define Merging (1pt):
6. Define Pushing (1pt):
7. Define Pull Request (1pt):
8. TURTORIAL ART (10pts.)
Modify the starter code below to create your own cool drawing.
Make sure you keep the last two lines of code!!!!
Your first and last name must be written on your art.
The last line keeps the window open until you click to close.
Turtle Documentation: https://docs.python.org/3.3/library/turtle.html?highlight=turtle
'''
import turtle
yoda=turtle.Turtle()
screen=turtle.Screen() # makes a screen object
screen.bgcolor('black') # colors the screen
yoda.pensize(3) # width of pen line
yoda.speed(10) # speed of drawing. Go fast to not waste time.
yoda.color("#00FF00")
yoda.circle(100) #head
yoda.penup()
yoda.setpos(50,185) #right ear
yoda.pendown()
yoda.goto(200,210)
yoda.goto(88,145)
yoda.penup()
yoda.setpos(-50,185) #left ear
yoda.pendown()
yoda.goto(-200,210)
yoda.goto(-88,145)
yoda.penup()
yoda.setpos(200,-300)
yoda.pendown()
yoda.pencolor('#00FF00')
yoda.write('Sign Your Name Here',font=("Arial", 16, "normal")) # signs your name to your art
turtle.exitonclick() #Keeps pycharm window open so we can see the drawing