-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
222 lines (217 loc) · 12.9 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
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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>fractals</title>
<script src="https://kit.fontawesome.com/7cc72a6a6d.js" crossorigin="anonymous"></script>
<link rel="icon" href="logo.png">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div id="editor-base">
<div id="editor">
<div id="main">
<div class="title big">
<img src="logo.png" width="40px" height="40px">
Fractal Playground
</div>
<div class="section">
<a href="https://github.com/AidanBlumLevine/fractals">view the code and learn more!</a>
</div>
<div class="section">
<div class="text">use WASD keys to move camera <br>and mouse to look around</div>
<div class="rangewrapper">
<div class="rangelabel">move speed</div>
<input type="range" min="-40" max="20" value="0" id="speed"></input>
</div>
<div class="rangelabelsecondary"><strong>drag</strong> or <strong>scroll</strong> to change</div>
</div>
<div class="title">Fractal Editor</div>
<div class="section">
<div class="text"><strong>Select a fractal</strong></div>
<div class="list-button" data-fractal=FC10FA1,1,1,3FE data-draw=1,1,1
data-color=FB9,12000FA1,1,1,3FX12000>Menger Sponge</div>
<div class="list-button" data-fractal=FC8FH2FO.5,1.9FM-2.7FE data-draw=5,5,5
data-color=FN8FL2FD.5,1.9FM-2.7FV8>Mandelbox</div>
<div class="list-button active" data-fractal="FC8FH1FO.1,1.9FM-2.8FE" data-draw=5,5,5
data-color=FB7,500FH1FO.1,1.9FM-2.8FX500>Mandelball</div>
<div class="list-button"
data-fractal=FC3FH1FO.1,1FM-2FEFR45,0,FA1,1,1,4FR-45,59,FC12FQ.9FH2FO.1,2FM-3FE data-draw=5,5,5
data-color=FZ>Hybrid 1</div>
<div class="list-button"
data-fractal=FC13FA1,1,1,3FT-.8,-.8,-.8FR5,5,5FS.7FH.1FE data-draw=1,1,1
data-color=FB13,50000FA1,1,1,3FT-.8,-.8,-.8FR5,5,5FS.7FH.1FX50000>Martian Cube</div>
<div class="list-button" data-fractal="">Custom</div>
</div>
<div class="title">Performance Settings</div>
<div class="section">
<div class="text">running slowly?</div>
<div class="text">turn these down</div>
<div class="rangewrapper">
<div class="rangelabel">shadows</div>
<input type="range" min="0" max="50" value="0" id="shadow"></input>
</div>
<div class="rangewrapper">
<div class="rangelabel">detail scale</div>
<input type="range" min="2" max="8" value="6" step="0.01" id="detail"></input>
</div>
<div class="rangewrapper">
<div class="rangelabel">render steps</div>
<input type="range" min="50" max="800" value="100" id="render"></input>
</div>
<div class="text p-top">fps: <span id="fps"></span></div>
</div>
</div>
<div id="extra">
<div id="extra-left">
<div class='codeblock-list-label'>Fractal equation</div>
<div id='fractal' class="codeblock-list">
</div>
<div class='codeblock-list-blabel'>
Draw Region
<div class="codeblock-vector" id="draw-region">
<input class="codeblock-vectorval x" placeholder="x" value="1">
<input class="codeblock-vectorval y" placeholder="y" value="1">
<input class="codeblock-vectorval z" placeholder="z" value="1">
</div>
</div>
<div class='codeblock-list-label p-top'>Coloring equation</div>
<div id='color' class="codeblock-list">
</div>
</div>
<div id="extra-right">
<div class=codeblock-list-label>Block Library</div>
<div class="codeblock-list-master">
<div class="codeblock master" data-name="Rotate">
<span class="codeblock-title" draggable="false">Rotate</span>
<div class="codeblock-vector">
<input class="codeblock-vectorval x" placeholder="x">
<input class="codeblock-vectorval y" placeholder="y">
<input class="codeblock-vectorval z" placeholder="z">
</div>
</div>
<div class="codeblock master" data-name="Translate">
<span class="codeblock-title" draggable="false">Translate</span>
<div class="codeblock-vector">
<input class="codeblock-vectorval x" placeholder="x">
<input class="codeblock-vectorval y" placeholder="y">
<input class="codeblock-vectorval z" placeholder="z">
</div>
</div>
<!-- <div class="codeblock master" data-name="Box">
<span class="codeblock-title" draggable="false">Box</span>
<div class="codeblock-vector" data-tip="box center">
<input class="codeblock-vectorval x" placeholder="x">
<input class="codeblock-vectorval y" placeholder="y">
<input class="codeblock-vectorval z" placeholder="z">
</div>
<div class="codeblock-vector" data-tip="box size">
<input class="codeblock-vectorval x" placeholder="x">
<input class="codeblock-vectorval y" placeholder="y">
<input class="codeblock-vectorval z" placeholder="z">
</div>
</div>
<div class="codeblock master" data-name="Sphere">
<span class="codeblock-title" draggable="false">Sphere</span>
<div class="codeblock-vector" data-tip="sphere center">
<input class="codeblock-vectorval x" placeholder="x">
<input class="codeblock-vectorval y" placeholder="y">
<input class="codeblock-vectorval z" placeholder="z">
</div>
<input class="codeblock-numfield vwide" placeholder="radius">
</div> -->
<div class="codeblock master" data-name="Box_Fold">
<span class="codeblock-title" draggable="false">Box Fold</span>
<input class="codeblock-numfield wide" placeholder="limit">
</div>
<div class="codeblock master" data-name="Scale">
<span class="codeblock-title" draggable="false">Scale</span>
<input class="codeblock-numfield wide" placeholder="scale">
</div>
<div class="codeblock master" data-name="Sphere_Fold">
<span class="codeblock-title" draggable="false">Sphere Fold</span>
<input class="codeblock-numfield wide" placeholder="min" data-tip="minimum radius">
<input class="codeblock-numfield wide" placeholder="fixed" data-tip="fixed radius">
</div>
<div class="codeblock master" data-name="Mandel">
<span class="codeblock-title" draggable="false">Mandel</span>
<input class="codeblock-numfield wide" placeholder="scale" data-tip="scale">
</div>
<div class="codeblock master" data-name="Sierpinski">
<span class="codeblock-title" draggable="false">Sierpinski</span>
<input class="codeblock-numfield wide" placeholder="scale" data-tip="scale">
</div>
<div class="codeblock master" data-name="Menger">
<span class="codeblock-title" draggable="false">Menger Sponge</span>
<div class="codeblock-vector" data-tip="chunk size">
<input class="codeblock-vectorval x" placeholder="x">
<input class="codeblock-vectorval y" placeholder="y">
<input class="codeblock-vectorval z" placeholder="z">
</div>
<input class="codeblock-numfield wide" placeholder="scale">
</div>
<div class="codeblock nested master" data-name="Repeat">
<div class="codeblock-row">
<span class="codeblock-title" draggable="false">Repeat</span>
<input class="codeblock-numfield wide" placeholder="count">
</div>
<div class="codeblock-list-master inner"></div>
</div>
<div class="codeblock master" data-name="Tetrahedral">
<span class="codeblock-title" draggable="false">Tetrahedral</span>
</div>
<div class="codeblock nested master" data-name="Orbit_Trap">
<div class="codeblock-row">
<span class="codeblock-title" draggable="false">Orbit Trap</span>
<input class="codeblock-numfield wide" placeholder="count">
<input class="codeblock-numfield wide" placeholder="scale">
</div>
<div class="codeblock-list-master inner"></div>
</div>
<div class="codeblock nested master" data-name="Color_Tally">
<div class="codeblock-row">
<span class="codeblock-title" draggable="false">Color Tally</span>
<input class="codeblock-numfield wide" placeholder="count">
</div>
<div class="codeblock-list-master inner"></div>
</div>
<div class="codeblock master" data-name="Sphere_Fold_Color">
<span class="codeblock-title" draggable="false">Sphere Fold + Color</span>
<input class="codeblock-numfield wide" placeholder="min" data-tip="minimum radius">
<input class="codeblock-numfield wide" placeholder="fixed" data-tip="fixed radius">
</div>
<div class="codeblock master" data-name="Box_Fold_Color">
<span class="codeblock-title" draggable="false">Box Fold + Color</span>
<input class="codeblock-numfield wide" placeholder="limit">
</div>
<div class="codeblock master" data-name="Hybrid_1_Color" hidden>
<span class="codeblock-title" draggable="false">Hybrid 1 Color</span>
</div>
</div>
<div class=codeblock-list-label>Toolbox</div>
<div class="icon-list">
<i id="trash" class="fas fa-2x fa-trash"></i>
<i id="copy" class="fas fa-2x fa-copy"></i>
</div>
<div id="run">
Update
</div>
</div>
</div>
<div id="right-edge">
<div id="expand-button">
+
</div>
</div>
</div>
</div>
<div id="canvas-wrapper">
<canvas id="canvas"></canvas>
</div>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<!-- <script src="lib/codemirror.js"></script>
<link rel="stylesheet" href="lib/codemirror.css">
<link rel="stylesheet" href="lib/theme.css"> -->
<script src="dist/pack.js"></script>
</body>
</html>