-
Notifications
You must be signed in to change notification settings - Fork 0
/
lsystem.html
39 lines (37 loc) · 1.3 KB
/
lsystem.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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css" type="text/css" />
<title>L-System in HTML5</title>
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
</head>
<body>
<canvas id="canvas" width="1000" height="850">Your browser does not support the HTML5 canvas tag.</canvas>
<div id="content">
<h1>Controls</h1>
<label>Fractal </label>
<select id="fractal">
<option>sierpinski</option>
<option>plant</option>
<option>dragoncurve</option>
</select><br />
<label>Generations </label>
<input id="generations" type="number" value="1" min="1" max="100"><br />
<label>Mode </label>
<select id="mode">
<option>normal</option>
<option>delay</option>
</select><br />
<label>Current Angle: <span id="angle">0</span></label>
<button id="angleMin" type="button">-</button>
<button id="anglePlus" type="button">+</button>
<input id="angleLive" class="livechk" type="checkbox">Live<br />
<label>Current Distance: </label>
<input id="distance" type="number" value="1" min="0.5" max="50">
<input id="distanceLive" class="livechk" type="checkbox">Live<br />
<button id="danceFractal" type="button">RANDOM!!</button>
</div>
<script type="text/javascript" src="lsystem.js"></script>
<script type="text/javascript" src="functions.js"></script>
</body>
</html>