-
Notifications
You must be signed in to change notification settings - Fork 7
/
view.html
32 lines (29 loc) · 963 Bytes
/
view.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
<html>
<head>
<title>Photo Booth</title>
<script src="js/py.js"></script>
<script src="video.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
<script src="js/complicated.js"></script>
</head>
<body>
<video id="v"></video>
<canvas id="c"></canvas>
<script>
var vidData = [1, 1, 1, 1];
function changeVideo(attribute,direction) {
value = direction/50 ;
vidData[attribute] = value;
}
</script>
<div>
Brightness
<input type="range" min="0" max="150" value="75" step="1" onchange="changeVideo(0,this.value)" />
RedScale
<input type="range" min="0" max="150" value="75" step="1" onchange="changeVideo(1,this.value)" />
GreenScale
<input type="range" min="0" max="150" value="75" step="1" onchange="changeVideo(2,this.value)" />
BlueScale
<input type="range" min="0" max="150" value="75" step="1" onchange="changeVideo(3,this.value)" />
</div>
</html>