-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
37 lines (33 loc) · 833 Bytes
/
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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>dithering</title>
<script type="module" src="/src/main.js"></script>
</head>
<body>
<h1>dithering</h1>
<h2>image</h2>
<div>
<img src="./hermannstrasse.jpg" />
<dither-dither src="./hermannstrasse.jpg"></dither-dither>
</div>
<h2>video</h2>
<div>
<video src="./hermannstrasse.mp4" muted autoplay loop></video>
<dither-dither src="./hermannstrasse.mp4" video></dither-dither>
</div>
<h2>custom threshold map</h2>
<div>
<img src="./hermannstrasse.jpg" />
<dither-dither src="./hermannstrasse.jpg" threshold-map="./bayer8x8.png" lazy></dither-dither>
</div>
</body>
<style>
div {
display: flex;
gap: 10px;
}
</style>
</html>