-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
86 lines (75 loc) · 2.99 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Steve Bobs Mesh Painter 2.1</title>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/gl-matrix/2.8.1/gl-matrix-min.js"
integrity="sha512-zhHQR0/H5SEBL3Wn6yYSaTTZej12z0hVZKOv3TwCUXT1z5qeqGcXJLLrbERYRScEDDpYIJhPC1fk31gqR783iQ=="
crossorigin="anonymous"
defer
></script>
<script type="module" src="scripts/main.js"></script>
<link rel="stylesheet" href="styles/stylesheet.css">
</head>
<body>
<div id="viewer"></div>
<!-- draiwing app part -->
<div class="container">
<section class="drawing-board">
<canvas id="uv-layer"></canvas>
<canvas id="drawingapp"></canvas>
</section>
<section class="tools-board">
<div class="row">
<div class="row buttons">
<button class="generate-mesh">Generate a Mesh</button>
</div>
<label class="title">Options</label>
<ul class="options">
<li class="option active tool" id="brush">
<img src="icons/brush.svg" alt="">
<span>Brush</span>
</li>
<li class="option tool" id="eraser">
<img src="icons/eraser.svg" alt="">
<span>Eraser</span>
</li>
<li>
<span>Size</span>
</li>
<li class="option">
<input type="range" id="size-slider" min="1" max="30" value="5">
</li>
<li>
<span>Opacity</span>
</li>
<li class="option">
<input type="range" id="opacity-slider" min="0" max="100" value="100">
</li>
</ul>
</div>
<div class="row colors">
<label class="title"> Colors</label>
<ul class="options">
<li class="option"></li>
<li class="option selected"></li>
<li class="option"></li>
<li class="option"></li>
<li class="option">
<input type="color" id="color-picker" value="#4A98F7">
</li>
</ul>
</div>
<div class="row buttons">
<button class="import-glb">Import GLTF/GLB</button>
<button class="import-img">Import Texture</button>
<button id="uv-button">Toggle UV Display</button>
<button class="clear-canvas">Clear Canvas</button>
<button class="save-img">Download Texture</button>
</div>
</section>
</div>
<div id="circle"></div>
</body>
</html>