-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpaintsupreme.html
52 lines (47 loc) · 1.61 KB
/
paintsupreme.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>PaintSupreme 3D</title>
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,600" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
<style>
body, html {
width: 100%;
height: 100%;
border: 0px;
padding: 0px;
margin: 0px;
background-color: #cdcdcd;
font-family: 'Open Sans', 'Roboto', serif;
overflow: hidden;
touch-action: none;
}
#webgl {
width: 100%;
height: 99.5%;
}
#workspace {
width: 100%;
height: 99.5%;
}
#drop_zone {
width: 100%;
height: 100%;
}
</style>
</head>
<body onload="main()">
<input style="display:none;" id="fileDialog" type="file" />
<canvas id="webgl" style="position: absolute; left: 0; top: 0; z-index: 2;">Please use a browser that supports "canvas"</canvas>
<canvas id="workspace" style="position: absolute; left: 0; top: 0; z-index: 1;">Please use a browser that supports "canvas"</canvas>
<canvas id="textureCanvas" style="display:none" width="256" height="256"></canvas>
<canvas id="dropZone" style="position: absolute; left: 0; top: 0; z-index: 3; display:none" width="256" height="256">
<div id="drop_zone">Drop files here</div>
</canvas>
<script> var VG={ localVGLibPrefix : "./" }; </script>
<script src="vglib.min.js"></script>
<script src="paintsupreme.vide"></script>
<script src="visualgraphics.js"></script>
</body>
</html>