-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
167 lines (158 loc) · 8.61 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
<!DOCTYPE html>
<html language="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css/main.css" />
<meta name="author" content="Selim Saygı <[email protected]>">
<title>Video Pixel Processing Demo</title>
</head>
<body>
<header class="row text-center">
<h1>Video Pixel Processing Demo</h1>
</header>
<hr />
<div class="row">
<div class="col-3 col-adapted">
<div class="row text-center">
<video id="video"></video>
</div>
<div class="row text-center">
<button id="play-pause-button" class="button" type="button">Play/Pause</button>
</div>
</div>
<div class="col-3 col-adapted">
<div class="row text-center">
<canvas id="canvas"></canvas>
</div>
<div class="row" style="min-height: 200px;">
<div class="col-1 text-center">
<button type="button" class="button" onclick="setFilterIndex(-1)" title="Previous effect">
<</button> </div> <div class="col-4">
<fieldset id="settings-pixelate" class="animated fade-in">
<legend>Pixelate Effect</legend>
<div class="row">
<div class="col-3">
<label class="label">Block size (Min: 1, Max: 20)</label>
</div>
<div class="col-3">
<input class="input pull-right" type="number" min="2" max="20" value="5"
onchange="blockSize = +this.value" />
</div>
</div>
<div class="row">
<div class="col-3">
<label class="label">Space (Min: 0, Max: 5)</label>
</div>
<div class="col-3">
<input class="input pull-right" type="number" min="0" max="5" value="0"
onchange="spaceBetweenBlocks = +this.value" />
</div>
</div>
</fieldset>
<fieldset id="settings-pointilate" class="animated fade-in" hidden>
<legend>Pointilate Effect</legend>
<div class="row">
<div class="col-3">
<label class="label">Point size (Min: 1, Max: 20)</label>
</div>
<div class="col-3">
<input class="input pull-right" type="number" min="2" max="20" value="5"
onchange="pointSize = +this.value" />
</div>
</div>
<div class="row">
<div class="col-3">
<label class="label">Space (Min: 0, Max: 5)</label>
</div>
<div class="col-3">
<input class="input pull-right" type="number" min="0" max="5" value="0"
onchange="spaceBetweenPoints = +this.value" />
</div>
</div>
</fieldset>
<fieldset id="settings-grayscale" class="animated fade-in" hidden>
<legend>Grayscale Effect</legend>
<div class="row text-center">
No options
</div>
</fieldset>
<fieldset id="settings-gameboy" class="animated fade-in" hidden>
<legend>Gameboy Effect</legend>
<div class="row text-center">
No options
</div>
</fieldset>
<fieldset id="settings-lowresscreen" class="animated fade-in" hidden>
<legend>Low Resolution Screen Effect</legend>
<div class="row">
<div class="col-3">
<label class="label">Color Palettes</label>
</div>
<div class="col-3">
<select class="input pull-right" value="0"
onchange="selectedColorPalette = +this.value">
<option value="0">Teletext</option>
<option value="1">Gameboy</option>
<option value="2">Black&White</option>
<option value="3">Vincent Van Gogh</option>
<option value="4">Material Colors</option>
</select>
</div>
</div>
<div class="row">
<div class="col-3">
<label class="label">Brightness (Min: -255, Max: 255)</label>
</div>
<div class="col-3">
<input class="input pull-right" type="number" min="-255" max="255" value="0"
onchange="brightness = +this.value" />
</div>
</div>
<div class="row">
<div class="col-3">
<label class="label">Pixel size (Min: 1, Max: 20)</label>
</div>
<div class="col-3">
<input class="input pull-right" type="number" min="2" max="20" value="5"
onchange="pixelSize = +this.value" />
</div>
</div>
<div class="row">
<div class="col-3">
<label class="label">Space (Min: 0, Max: 5)</label>
</div>
<div class="col-3">
<input class="input pull-right" type="number" min="0" max="5" value="0"
onchange="spaceBetweenPixels = +this.value" />
</div>
</div>
</fieldset>
</div>
<div class="col-1 text-center">
<button type="button" class="button" onclick="setFilterIndex(1)" title="Next effect">></button>
</div>
</div>
</div>
</div>
<section class="row text-center">
<header>
<h3>Available Options</h3>
</header>
<p id="filters-desc" style="color:orangered; font-weight:bold;">...</p>
<footer>
You can use arrow buttons or keys to switch between filters
</footer>
</section>
<hr />
<footer class="row text-center">
<a href="http://www.w3.org/html/logo/">
<img src="https://www.w3.org/html/logo/badge/html5-badge-h-css3-device-graphics-multimedia-semantics.png"
width="261" height="64"
alt="HTML5 Powered with CSS3 / Styling, Device Access, Graphics, 3D & Effects, Multimedia, and Semantics"
title="HTML5 Powered with CSS3 / Styling, Device Access, Graphics, 3D & Effects, Multimedia, and Semantics" />
</a>
</footer>
</body>
<script src="js/jCanvasPainter.js" type="text/javascript"></script>
<script src="js/main.js" type="text/javascript"></script>
</html>