-
Notifications
You must be signed in to change notification settings - Fork 27
/
index.html
48 lines (39 loc) · 1.37 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="content-language" content="en-EN" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" />
<title>WebAR.rocks.face makeup demo</title>
<!-- INCLUDE WebAR.rocks.face MAIN SCRIPT -->
<script src="../../dist/WebARRocksFace.js"></script>
<!-- INCLUDE MAIN HELPER -->
<script src="../../helpers/WebARRocksFaceShape2DHelper.js"></script>
<!-- INCLUDE RESIZER HELPER -->
<script src="../../helpers/WebARRocksResizer.js"></script>
<!-- INCLUDE LANDMARKS STABILIZER -->
<script src="../../helpers/landmarksStabilizers/WebARRocksLMStabilizer2.js"></script>
<!-- INCLUDE DEMO SCRIPT -->
<script src="./main.js"></script>
<style type="text/css">
#WebARRocksFaceCanvasAR, #WebARRocksFaceCanvasVideo {
position: fixed;
width: 100vw;
top: 0;
left: 0;
/* mirror the canvas: */
transform: rotateY(180deg);
}
#WebARRocksFaceCanvasVideo {
z-index: 0;
}
#WebARRocksFaceCanvasAR {
z-index: 1;
}
</style>
</head>
<body>
<canvas width="600" height="600" id='WebARRocksFaceCanvasAR'></canvas>
<canvas width="600" height="600" id='WebARRocksFaceCanvasVideo'></canvas>
</body>
</html>