forked from urix/HTML5-Stereo-Viewer
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.htm
31 lines (26 loc) · 1.47 KB
/
index.htm
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
<!DOCTYPE html>
<html>
<head>
<title>HTML5 Stereo viewer</title>
</head>
<body>
<h1>HTML5 Stereo viewer</h1>
<div>
<script type="application/x-javascript" src="build/image.anaglyph.js"> </script>
<input type="button" value="stereoDrawImage('img/s-lr.jpg','StereoLR', 'TrueAnaglyph', 'RedCyan', '1.5', 'stereoCanvas')" onclick="stereoDrawImage('s-lr.jpg','StereoLR', 'TrueAnaglyph', 'RedCyan', '1.5', 'stereoCanvas')" /> <br />
<input type="button" value="stereoDrawImage('img/s-rl.jpg','StereoRL', 'OptimizedAnaglyph', 'RedCyan', '0.5', 'stereoCanvas')" onclick="stereoDrawImage('s-rl.jpg','StereoRL', 'OptimizedAnaglyph', 'RedCyan', '0.5', 'stereoCanvas')" /> <br />
<input type="button" value="stereoDrawImage('img/s-rl3.jpg','StereoRL', 'Optimized+Anaglyph', 'GreenMagenta', '1', 'stereoCanvas')" onclick="stereoDrawImage('s-rl3.jpg','StereoRL', 'Optimized+Anaglyph', 'GreenMagenta', '1', 'stereoCanvas')" /> <br />
<div style="visibility:hidden;">
<h2>Source images</h2>
<img src="img/s-lr.jpg" width=1 alt="Left-Right stereo pair source, Toys" />
<img src="img/s-rl.jpg" width=1 alt="Right-Left stereo pair source, Toys" />
<img src="img/s-rl3.jpg" width=1 alt="Right-Left stereo pair source, Gate" />
</div>
<div id="canvasSet">
<h2>Canvas Sets</h2>
<canvas id="stereoCanvas"></canvas>
<span id="canvasEnd"></span>
</div>
</div>
</body>
</html>