-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
103 lines (90 loc) · 4.41 KB
/
index.html
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Recursive Tree Renderer</title>
<link rel="stylesheet" href="css/normalize.css" charset="utf-8">
<link rel="stylesheet" href="css/common.css" charset="utf-8">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-slider/9.2.0/css/bootstrap-slider.min.css">
<link rel="stylesheet" href="css/bootstrap-colorpicker.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"
integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-slider/9.2.0/bootstrap-slider.min.js"></script>
<script src="js/lib/bootstrap-colorpicker.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.3/p5.js"></script>
</head>
<body>
<a href="https://github.com/tex2e/p5js-tree" class="fork-me-on-github">
<img style="position: absolute; top: 0; right: 0; border: 0;"
src="https://camo.githubusercontent.com/38ef81f8aca64bb9a64448d0d70f1308ef5341ab/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67"
alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png">
</a>
<form class="settings">
<h3>Drawing Settings</h3>
<div class="form-group">
<label for="js_branch_color">Color</label>
<div id="js_branch_color" class="input-group colorpicker-component">
<input type="text" value="#00AABB" class="form-control" />
<span class="input-group-addon"><i></i></span>
</div>
</div>
<div class="form-group">
<label for="js_nest">Nest</label><br>
<input id="js_nest" type="text"/>
</div>
<div class="form-group">
<label for="js_start_branch_length">Start Branch Length</label><br>
<input id="js_start_branch_length" type="text"/>
</div>
<br>
<div class="form-group">
<label for="js_right_branch_magnification_rate">Right Branch Magnification Rate</label>
<input id="js_right_branch_magnification_rate" type="text"/>
</div>
<div class="form-group">
<label for="js_center_branch_magnification_rate">Center Branch Magnification Rate</label>
<input id="js_center_branch_magnification_rate" type="text"/>
</div>
<div class="form-group">
<label for="js_left_branch_magnification_rate">Left Branch Magnification Rate</label>
<input id="js_left_branch_magnification_rate" type="text"/>
</div>
<br>
<div class="form-group">
<label for="js_right_rotation">Right Rotation</label><br>
<input id="js_right_rotation" type="text"/>
</div>
<div class="form-group">
<label for="js_center_rotation">Center Rotation</label>
<input id="js_center_rotation" type="text"/>
</div>
<div class="form-group">
<label for="js_left_rotation">Left Rotation</label><br>
<input id="js_left_rotation" type="text"/>
</div>
<br>
<div class="form-group">
<label for="js_right_rotation_rate">Right Rotation Rate</label>
<input id="js_right_rotation_rate" type="text"/>
</div>
<div class="form-group">
<label for="js_left_rotation_rate">Left Rotation Rate</label>
<input id="js_left_rotation_rate" type="text"/>
</div>
<button class="btn btn-primary" type="button" name="button" onclick="save('my-tree.png');">
<span class="glyphicon glyphicon-save" aria-hidden="true"></span>
Save
</button>
<button class="btn btn-success" type="button" name="button" onclick="drawTree();">
<span class="glyphicon glyphicon-retweet" aria-hidden="true"></span>
Redraw
</button>
</form>
<h1>Recursive Tree Renderer</h1>
<!-- core JavaScript ================================================== -->
<script src="js/main.js"></script>
</body>
</html>