-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
39 lines (37 loc) · 1.67 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
<html>
<head>
<link rel="stylesheet" href="https://webgl2fundamentals.org/webgl/resources/webgl-tutorials.css">
<link rel="stylesheet" href="libs/coloris.js/coloris.min.css" />
</head>
<body style="margin:0">
<canvas id="c" style="height: 100vh; width: 100vw; display: block" width="100%" height="100%"></canvas>
<div id="uiContainer">
<div id="ui">
<div id="scale"></div>
<div id="x"></div>
<div id="y"></div>
<div id="numofsources"></div>
<div id="frequency"></div>
<div id="thresh"></div>
<div id="thickness"></div>
<div id="gitter"></div>
<div id="sphere"></div>
<div id="speed"></div>
<input type="text" class="coloris" value="rgb(255, 0, 0)">
</div>
</div>
</body>
<!--
for most samples webgl-utils only provides shader compiling/linking and
canvas resizing because why clutter the examples with code that's the same in every sample.
See https://webgl2fundamentals.org/webgl/lessons/webgl-boilerplate.html
and https://webgl2fundamentals.org/webgl/lessons/webgl-resizing-the-canvas.html
for webgl-utils, m3, m4, and webgl-lessons-ui.
-->
<!--<script> let t=0, speed=1.0; setInterval(()=>{ document.body.style.background=`hsl(${t++*speed}, 100%, 50%)` },(100/6))</script> -->
<script> let t=0, speed=1.0; setInterval(()=>{ document.body.style.background=`hsl(${t++*speed}, 100%, 50%)` },(100/6))</script>
<script src="libs/coloris.js/coloris.min.js"></script>
<script src="https://webgl2fundamentals.org/webgl/resources/webgl-utils.js"></script>
<script src="https://webgl2fundamentals.org/webgl/resources/webgl-lessons-ui.js"></script>
<script src="texture.js"></script>
</html>