-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
72 lines (70 loc) · 1.74 KB
/
Copy pathindex.html
File metadata and controls
72 lines (70 loc) · 1.74 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>WebGPU Strokes Rendering</title>
<style>
h2 {
position: absolute;
}
html,
body {
font-family: Avenir,Helvetica,Arial,sans-serif;
-webkit-font-smoothing: antialiased;
margin: 0;
width: 100%;
height: 100%;
display: flex;
}
.menu{
width: 200px;
height: 100%;
border-right: 1px solid #888;
overflow: auto;
padding: 0 10px;
}
.menu > a{
display: block;
margin: 5px 0;
color: #045b88;
text-decoration: none;
cursor: pointer;
}
a:hover{
text-decoration: underline;
}
a.active{
color: red;
}
iframe{
flex-grow: 1;
border: none;
}
.src{
position: fixed;
right: 10px;
bottom: 10px;
height: 40px;
width: 40px;
background: #fff;
text-align: center;
font-size: 16px;
line-height: 40px;
border-radius: 50%;
border:none;
opacity: 0.6;
cursor: pointer;
text-decoration: none !important;
}
.src:hover{
opacity: 1;
}
</style>
</head>
<body>
<h2>WebGPU Strokes</h2>
<a class="src" href="https://github.com/lyifaxxx/WebGPU-based-Stroke-Rendering" target="_blank">< ></a>
<iframe src="./canvasTexture.html"></iframe>
</body>
</html>