-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
175 lines (173 loc) · 6.39 KB
/
Copy pathindex.html
File metadata and controls
175 lines (173 loc) · 6.39 KB
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>4D Tesseract Renderer</title>
<link rel="stylesheet" href="css/cinematic.css" />
</head>
<body>
<div class="shell">
<header>
<h1 class="brand">4DCE</h1>
<p class="tagline">
Draws a 4D surface (default: unit tesseract) via package
<code>4d-renderer</code> · rotates in 4D planes · projects 4D→3D→2D.
Does not render “4D” directly. Exports run Intent → Evidence →
Authority → Execution → CSR.
</p>
<ol class="pipeline" aria-label="Render pipeline">
<li>Geometry</li>
<li>4D rotate</li>
<li>Project</li>
<li>Draw edges</li>
<li>Provenance</li>
</ol>
<p class="charter-badge" id="charter-badge">charter.4dce.v1</p>
<p class="world-badge" id="world-badge">loading world…</p>
</header>
<div class="viewport">
<canvas id="stage" aria-label="Projected tesseract"></canvas>
</div>
<footer class="hud">
<div class="export-row">
<div class="actions">
<button type="button" id="btn-play-timeline" class="btn btn-primary">
Play Opening 4D Reveal
</button>
<button type="button" id="btn-play-ascension" class="btn btn-primary">
Play Mythar Ascension
</button>
<button type="button" id="btn-pause-timeline" class="btn">
Pause timeline
</button>
<button type="button" id="btn-toggle-render" class="btn">Pause renderer</button>
<button type="button" id="btn-reset-view" class="btn">Reset view</button>
<button type="button" id="btn-picture" class="btn">
Capture picture
</button>
<button type="button" id="btn-movie" class="btn">
Make movie
</button>
<button type="button" id="btn-provenance" class="btn">
Download CSSV ledger
</button>
<button type="button" id="btn-replay" class="btn">
Replay last CSR
</button>
<label class="duration">
Length
<select id="ctrl-duration" aria-label="Movie length in seconds">
<option value="4">4 s</option>
<option value="8" selected>8 s</option>
<option value="12">12 s</option>
<option value="20">20 s</option>
</select>
</label>
</div>
<p class="export-status" id="export-status" aria-live="polite"></p>
<div class="csr-panel" aria-label="Constitutional state records">
<div class="csr-label">CSR log · timeline <span id="read-timeline">0.00s</span></div>
<div id="csr-log" class="csr-log">No CSR yet.</div>
</div>
</div>
<div class="controls">
<label>
Surface
<select id="ctrl-surface" aria-label="4D surface">
<option value="tesseract" selected>tesseract</option>
<option value="clifford-torus">clifford-torus</option>
<option value="hopf-surface">hopf-surface</option>
<option value="torus-3d">torus-3d</option>
<option value="trefoil-4d">trefoil-4d</option>
</select>
</label>
<label>
Mode
<select id="ctrl-mode" aria-label="Render mode">
<option value="wireframe" selected>wireframe</option>
<option value="solid">solid</option>
<option value="both">solid + wireframe</option>
</select>
</label>
<label>
Look
<select id="ctrl-profile" aria-label="Render profile">
<option value="technical" selected>technical</option>
<option value="cinematic">cinematic</option>
<option value="solid-copper">solid copper</option>
<option value="lattice">lattice</option>
</select>
</label>
<label>
Quality
<select id="ctrl-quality" aria-label="Render quality">
<option value="performance">performance</option>
<option value="balanced">balanced</option>
<option value="high" selected>high</option>
<option value="ultra">ultra</option>
</select>
</label>
<label>
Speed
<span class="value" data-for="ctrl-speed">0.6</span>
<input
id="ctrl-speed"
type="range"
min="0"
max="2"
step="0.05"
value="0.6"
/>
</label>
<label>
d₄ camera
<span class="value" data-for="ctrl-d4">4.0</span>
<input
id="ctrl-d4"
type="range"
min="2.5"
max="8"
step="0.1"
value="4"
/>
</label>
<label>
d₃ camera
<span class="value" data-for="ctrl-d3">4.0</span>
<input
id="ctrl-d3"
type="range"
min="2.5"
max="8"
step="0.1"
value="4"
/>
</label>
<label>
Scale
<span class="value" data-for="ctrl-scale">90</span>
<input
id="ctrl-scale"
type="range"
min="40"
max="160"
step="2"
value="90"
/>
</label>
</div>
<div class="provenance" aria-live="polite">
<div><strong>fps</strong> <span id="read-fps">60 · high</span></div>
<div><strong>backend</strong> <span id="read-backend">Canvas 2D</span></div>
<div><strong>θ</strong> <span id="read-theta">0.00</span></div>
<div><strong>verts</strong> <span id="read-verts">16</span></div>
<div><strong>edges</strong> <span id="read-edges">32</span></div>
<div><strong>d₄</strong> <span id="read-d4">4.0</span></div>
<div><strong>d₃</strong> <span id="read-d3">4.0</span></div>
</div>
</footer>
</div>
<script type="module" src="js/app.js"></script>
</body>
</html>