forked from google/swissgl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
66 lines (63 loc) · 2.43 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
<!DOCTYPE html>
<title>SwissGL demos</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="demo/style.css">
<script src='swissgl.js'></script>
<script src="demo/dat.gui.min.js"> </script>
<script src='demo/NeuralCA.js'></script>
<script src='demo/BitField.js'></script>
<script src='demo/GameOfLife.js'></script>
<script src='demo/ParticleLife.js'></script>
<script src='demo/ParticleLenia.js'></script>
<script src='demo/FancyLenia.js'></script>
<script src='demo/Spectrogram.js'></script>
<script src='demo/Physarum.js'></script>
<script src='demo/SurfaceNormals.js'></script>
<script src='demo/MeshGrid.js'></script>
<script src='demo/CubeDeform.js'></script>
<script src='demo/ColorCube.js'></script>
<script src='demo/Shadowmap.js'></script>
<script src='demo/ParticleLife3d.js'></script>
<script src='demo/Torus4d.js'></script>
<script src='demo/DeferredShading.js'></script>
<script src='demo/Springs.js'></script>
<script src='demo/ReactionDiffusion.js'></script>
<script src='demo/DotCamera.js'></script>
<script src='demo/Physarum3d.js'></script>
<script src='demo/TextureSamplers.js'></script>
<script src='demo/main.js'></script>
<details id="panel" open>
<summary><a href="https://github.com/google/swissgl">SwissGL</a> demos</summary>
<div id="cards"></div>
</details>
<div id="demo">
<canvas id="c" width="640" height="360"></canvas>
</div>
<div id="buttons">
<button title="VR" onclick="toggleVR()" id="vrButton">VR</button>
<button title="AR" onclick="toggleAR()" id="arButton">AR</button>
<button title="settings" onclick="toggleGui()" id="settingButton" style="font-size: 180%;">⛯</button>
<a id='sourceLink' href="" target="_blank"><button title="source code"><></button></a>
<button title="fullscreen" onclick="fullscreen()"">⛶</button>
</div>
<script>
'use strict';
const app = new DemoApp([
NeuralCA, DotCamera, MeshGrid, ParticleLife, ParticleLife3d, BitField, TextureSamplers, GameOfLife,
ParticleLenia, FancyLenia, Spectrogram, Physarum, Physarum3d, SurfaceNormals, CubeDeform,
ColorCube, Shadowmap, Torus4d, DeferredShading, Springs, ReactionDiffusion,
]);
function fullscreen() {
app.fullscreen();
}
function toggleGui() {
app.toggleGui();
}
function toggleVR() {
app.toggleXR('vr');
}
function toggleAR() {
app.toggleXR('ar');
}
</script>