FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
TeachingKidsProgramming.Python/animation.py at master · TeachingKidsProgramming/TeachingKidsProgramming.Python · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
TeachingKidsProgramming
/
TeachingKidsProgramming.Python
Public
Notifications
You must be signed in to change notification settings
Fork
4
Star
11
Code
Issues
0
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
TeachingKidsProgramming.Python
/
animation.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
37 lines (29 loc) · 752 Bytes
Breadcrumbs
TeachingKidsProgramming.Python
/
animation.py
Copy path
File metadata and controls
37 lines (29 loc) · 752 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
#!/usr/bin/env python
import
builtins
import
turtle
as
t
import
time
import
math
import
fractals
.
_lib
as
_lib
from
fractals
import
*
builtins
.
position
=
(
-
300
,
-
250
)
_lib
.
init
()
for
i
in
range
(
7
):
t
.
clear
()
t
.
penup
()
t
.
setpos
(
position
)
t
.
setheading
(
heading
)
t
.
pendown
()
arrowhead_curve
(
i
,
size
)
# caesaro(i, size)
# dragon_curve(i, size)
# h_tree(i, size, angle=90, par=1/math.sqrt(2))
# h_tree(i, size, angle=85, par=0.69)
# h_tree(i, size, angle=45, par=1/math.sqrt(2))
# stochastic(i, size, angle=45, par=1/math.sqrt(2), factor=0.3)
# koch_antisnowflake(i, size)
# koch_curve(i, size)
# koch_snowflake(i, size)
# sierpinski_triangle(i, size)
t
.
update
()
time
.
sleep
(
1
)
_lib
.
exit
()
Back
|
FazBrowse Home
|
New Git URL