blob: 312e3f642af9d6c306c30974629125442ad188eb (
plain)
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
|
<!DOCTYPE html>
<html>
<head>
<style>
body {
height: 100vh;
width: 100vw;
margin: 0;
}
.bottomRight {
padding: 12px;
position: fixed;
bottom: 0;
right: 0;
background-color: rgba(255,255,255,0.5);
border: 1px solid white;
border-radius: 8px;
margin-right: 6px;
margin-bottom: 6px;
}
.verticalSlider
{
writing-mode: bt-lr; /* IE */
-webkit-appearance: slider-vertical; /* Chromium */
width: 8px;
padding: 0 5px;
}
</style>
</head>
<body>
<div id="canvasHolder">
</div>
<div class="bottomRight">
<input orient="vertical" type="range" min="-1000" max="1000" value="0" id="imaginarySlider" class="verticalSlider">
<input type="range" min="-1000" max="1000" value="0" id="realSlider">
<br>
imaginary: <span id="imag-val"></span>
<button id="animate-imag" onclick="startImagAnim()">Animate</button>
<br>
real: <span id="real-val"></span>
<button id="animate-real" onclick="startRealAnim()">Animate</button>
<br>
powered by <a href="https://github.com/gpujs/gpu.js">gpu.js</a>
</div>
<script src="gpu-browser.js"></script>
<script src="julia.js"></script>
</body>
</html>
|