-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·47 lines (45 loc) · 2.59 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
<!DOCTYPE html>
<html lang="en">
<head>
<link href="css/main.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/script.js"></script>
</head>
<body>
<div class="example">
<h2> HTML5 Canvas - Common Image Filters using Javascript</h2>
<div class="column1">
<input type="file" id="imageLoader" name="imageLoader"/>
<input type="button" onclick="resetToColor()" value="Original"/><br />
<input type="button" onclick="fliph()" value="Horizontal Flip" /><br />
<input type="button" onclick="flipv()" value="Vertical Flip" /><br />
<input type="button" onclick="Grayscale()" value="Grayscale" /><br />
<input type="button" onclick="Invert()" value="Invert" /><br />
<input type="button" onclick="Thresholded()" value="Threshold" /><br />
<input type="button" onclick="sepia()" value="Sepia" /><br />
<input type="button" onclick="noise()" value="Noise" /><br />
<input type="button" onclick="posterize()" value="Posterize" /><br />
<input type="button" onclick="trip()" value="Trippy" /><br />
Saturation: <input type="button" onclick="changesaturation(1)" value="+"/>
<input type="button" onclick="changesaturation(-1)" value="-"/><br />
Contrast: <input type="button" onclick="changecontrast(10)" value="+"/>
<input type="button" onclick="changecontrast(-10)" value="-"/><br />
Light: <input type="button" onclick="changeGrayValue(0.1)" value="+" />
<input type="button" onclick="changeGrayValue(-0.1)" value="-" /><br />
Blur(Original): <input type="button" onclick="changeBlurValue(1)" value="+" />
<input type="button" onclick="changeBlurValue(-1)" value="-" /><br />
Red: <input type="button" onclick="changeColorValue('er', 10)" value="+" />
<input type="button" onclick="changeColorValue('er', -10)" value="-" /><br />
Green: <input type="button" onclick="changeColorValue('eg', 10)" value="+" />
<input type="button" onclick="changeColorValue('eg', -10)" value="-" /><br />
Blue: <input type="button" onclick="changeColorValue('eb', 10)" value="+" />
<input type="button" onclick="changeColorValue('eb', -10)" value="-" /><br />
</div>
<div class="column2">
<canvas id="orig"></canvas>
<canvas id="panel"></canvas>
</div>
<div style="clear:both;"></div>
</div>
<br><br>
</body>
</html>