-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlsystem4.html
59 lines (52 loc) · 1.87 KB
/
lsystem4.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
<!DOCTYPE html >
<!--
By Dave Lawrence on 11/10/2011
LSystem 4
http://proceduralgraphics.blogspost.com
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>LSystem</title>
<script type="text/javascript" src="jquery/jquery-1.6.2.min.js"></script>
<script type="text/javascript" src="jquery/jquery.overscroll.min.js"></script>
<script type="text/javascript" src="util.js"></script>
<script type="text/javascript" src="lsystem.js"></script>
<script type="text/javascript" src="drawing.js"></script>
<script type="text/javascript" src="lsystem4.js"></script>
<style>
html,body { width:100%; height:100%; margin:0; overflow:hidden; }
body { padding:20px; }
table, tr { width: "100%"; }
th { font-weight: bold; }
td { text-align: center; border: 0px; padding: 5px; }
input#rules { width: 400px; }
input#angle { width: 40px; }
input#iterations { width: 30px; }
div#instructions { margin-top: 20px; }
div.heading { font-weight: bold; };
</style>
</head>
<body onload="setup()">
<div id="overscroll">
<div id="canvas"></div>
</div>
<div>
<B>New:</B> Google Maps style dragging.<BR />
<input id="zoom_out" type="button" value="-" /><input id="zoom_in" type="button" value="+" /> Zoom |
Select to load existing l-systems: <select id="l-sys"></select>
</div>
<div id="info">
<table>
<tr><th>Axiom</th><th>Rules</th><th>Angle</th><th>Iterations</th></tr>
<tr>
<td><input id="axiom" /></td>
<td><input id="rules" /></td>
<td><input id="angle" /></td>
<td><input id="dec" type="button" value="-" /><input id="iterations" /><input id="inc" type="button" value="+" /></td>
<td><input id="update" type="button" value="update" /></td>
</tr>
</table>
</div>
<div><A href="http://proceduralgraphics.blogspot.com">http://proceduralgraphics.blogspot.com</A></div>
</body>
</html>