-
Notifications
You must be signed in to change notification settings - Fork 1
/
holarchy.html
101 lines (101 loc) · 3.27 KB
/
holarchy.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Rule Following Holarchies - Progeny.js</title>
<script src="rl.js"></script>
<script src="kdTree.js"></script>
<script src="linknodes.js"></script>
<script src="pipe.js"></script>
<script src="progeny.js"></script>
<script src="colormap.js"></script>
<!--<script src="https://newsbubbles.github.io/progeny/rl.js"></script>
<script src="https://newsbubbles.github.io/progeny/kdTree.js"></script>
<script src="https://newsbubbles.github.io/progeny/linknodes.js"></script>
<script src="https://newsbubbles.github.io/progeny/pipe.js"></script>
<script src="https://newsbubbles.github.io/progeny/progeny.js"></script>
<script src="https://newsbubbles.github.io/progeny/colormap.js"></script>
-->
<style type="text/css">
body {
color: #FFDDDD;
background-color: #222;
margin: 0px;
font-family: sans-serif;
}
canvas {
display: block;
}
.agent-menu {
border-radius: 0.5em;
background-color: rgba(0, 0, 0, 0.65);
padding: 1em;
position: absolute;
bottom: 1em;
left: 1em;
width: 15em;
}
.action-menu {
border-radius: 0.5em;
background-color: rgba(0, 0, 0, 0.65);
padding: 1em;
position: absolute;
bottom: 1em;
right: 1em;
width: 15em;
}
#cellprev {
width:20px;
height: 20px;
background-color: #222;
border: 1px solid #F00;
display: inline-block;
}
#cellname {
font-weight: bolder;
padding-left: 1em;
padding-right: 1em;
}
#cellstats {
padding-left: 50px;
}
#cellstats label {
font-weight: bold;
}
.sdev {
color: #bbb;
}
button {
background-color: #065ab5;
border-radius: 0.5em;
color: #fff;
font-weight: bold;
padding: 0.4em;
border: 1px solid #eee;
}
input {
background-color: #222;
border-radius: 0.4em;
padding: 0.4em;
border: 2px solid #F3F;
color: #eee;
}
</style>
</head>
<body>
<canvas id="world"></canvas>
<div class="agent-menu" id="menu"><span id="cellprev"> </span> <span id="cellname"></span><div id="cellstats"></div></div>
<div class="action-menu">
<button id="dance" onclick="dance(_.q('#tempo').value, _.q('#beat').value)">Dance</button> <small>BPM:</small><input id="tempo" value="130" size="2" style="width:2em" onblur="tapHist=[];"> <small>Beat:</small><input id="beat" size="2" style="width:1em" value="2" onblur="tapHist=[];">
<div style="margin-top: 0.8em;">
<input type="checkbox" autocomplete="off" onclick="HIDE.trace=this.checked"> Trace
<input type="checkbox" autocomplete="off" checked onclick="HIDE.render.opt.surface=this.checked"> surf
<input type="checkbox" autocomplete="off" onclick="HIDE.render.opt.cells=this.checked"> cell
<input type="checkbox" autocomplete="off" onclick="HIDE.render.opt.radial=this.checked"> rad
</div>
</div>
<script src="hide.js"></script>
<script src="holarchy.js"></script>
</body>
</html>