-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathturtle.html
More file actions
25 lines (25 loc) · 817 Bytes
/
turtle.html
File metadata and controls
25 lines (25 loc) · 817 Bytes
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Turtle</title>
</head>
<body>
<script type="text/javascript" src="./js/1px-fix.js"></script>
<script type="text/javascript" src="./js/turtle.js"></script>
<script type="text/javascript" src="./js/demo.js"></script>
<script type="text/javascript">
//init turtle
let t = new Turtle({ debug: false, animate: 0 }) //disable debug, animate: [times of millisecond]
demo1(t) // Regular polygon
demo2(t) // Regular star polygon
demo3(t) // Constant velocity helix + golden spiral
demo4(t) // Variable speed helix
demo5(t) // Koch curve
demo6(t) // Fractal Tree
demo7(t) // Sierpinski triangle
demo8(t) // Leaf
demo9(t) // Dragon Curve
</script>
</body>
</html>