-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathturtlet.py
57 lines (53 loc) · 907 Bytes
/
turtlet.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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# turtlet.py
#
# Copyright 2021 geek <geek@KALIBOX>
#
#
from turtle import *
color('red', 'yellow')
bgcolor("Black")
title("God Damn Turtle")
shape('circle')
shapesize(0.1,0.1,0)
pu()
goto(-300,200)
color('white')
write('YI-HAA!!', True, align="center",font=('Arial',96,'bold'))
color('green')
goto(0,0)
pd()
pensize(2)
speed(0)
#begin_fill()
while True:
forward(500)
now=pos()
pu()
#goto(pos())
#goto(now)
print(now)
pd()
circle(5)
left(170)
write(str(pos()),False,align='center',font=('Arial',8,'normal'))
if abs(pos()) < 1:
break
end_fill()
done()
# def drawthings():
# s = turtle.Screen()
# s.bgcolor("black")
# t = turtle.Turtle
# for i in range(4):
# t.forward(350)
# t.right(90)
# turtle.done()
# def main(args):
# drawthings()
# return 0
# if __name__ == '__main__':
# import sys
# sys.exit(main(sys.argv))