-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
42 lines (40 loc) · 1.52 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>image-wasm</title>
</head>
<body>
<input type="file" accept="image/*" id="imageInput" /> <br />
<br />
<select id="filter">
<option value="grayscale">Grayscale</option>
<option value="redGrayscale">Red Grayscale</option>
<option value="greenGrayscale">Green Grayscale</option>
<option value="blueGrayscale">Blue Grayscale</option>
<option value="sepia">Sepia</option>
<option value="invert">Invert</option>
<option value="removeRed">Remove Red</option>
<option value="removeGreen">Remove Green</option>
<option value="removeBlue">Remove Blue</option>
<option value="swapRedBlue">Swap Red+Blue</option>
<option value="swapRedGreen">Swap Red+Green</option>
<option value="swapBlueGreen">Swap Blue+Green</option>
<option value="swapAlphaRed">Swap Alpha+Red</option>
<option value="swapAlphaGreen">Swap Alpha+Green</option>
<option value="swapAlphaBlue">Swap Alpha+Blue</option>
<option value="neue">Neue</option>
<option value="lix">Lix</option>
<option value="ryo">Ryo</option>
<option value="redden">Redden</option>
</select>
<input type="button" id="singleThread" value="Process (single thread)" disabled />
<input type="button" id="multiThread" value="Process (multi thread)" disabled />
<input type="button" id="restoreButton" value="Restore" />
<output id="time"></output>
<br />
<br />
<canvas id="canvas" width="512" height="512"></canvas>
<script src="index.js"></script>
</body>
</html>