-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathalphablend.html
86 lines (86 loc) · 3.76 KB
/
alphablend.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
<html>
<head>
<meta name="copyright" content="Copyright © 2017/04/27- [email protected] . All Rights Reserved.">
<meta charset="utf-8">
<title> Alpha Blending </title>
<link rel="stylesheet" href="index.css">
</head>
<body>
<div class="container">
<div id="controlPanel" style="float:left">
<div style="float:left">
<div style="float:left ;">
<select id="methodSelect" size="4">
<option value="plus" selected> 加算 </option>
<option value="minus" > 減算 </option>
<option value="multi" > 乗算 </option>
<option value="div" > 除算 </option>
</select>
</div>
</div >
<div style="float:left">
<div>
maxWidthHeight:<input id="maxWidthHeightRange" type="range" min="16" max="2000" step="1" value="480">:<input type="text" id="maxWidthHeightText" size="5">
</div>
<div>
linearGamma:<input id="linearGammaCheckbox" type="checkbox" />
</div>
<div>
inverse :<input id="inverse" type="checkbox" />
</div>
</div>
<div style="float:left">
<div>
ratio1:<input id="ratio1Range" type="range" min="0.0" max="1.0" step="0.1" value="0.5">:<input type="text" id="ratio1Text" size="4">
</div>
<div>
ratio2:<input id="ratio2Range" type="range" min="0.0" max="1.0" step="0.1" value="0.5">:<input type="text" id="ratio2Text" size="4"> <br />
</div>
<div>
ratio:<input id="ratioRange" type="range" min="0.0" max="1.0" step="0.1" value="0.5">:<input type="text" id="ratioText" size="4">
</div>
</div>
<div style="float:left">
<div>
shift X:<input id="shiftXRange" type="range" min="-100" max="100" step="1" value="0">:<input type="text" id="shiftXText" size="4">
</div>
<div>
shift Y:<input id="shiftYRange" type="range" min="-100" max="100" step="1" value="0">:<input type="text" id="shiftYText" size="4">
</div>
</div>
<div style="float:left">
<div>
grad slant X:<input id="gradSlantXRange" type="range" min="-1.0" max="1.0" step="0.01" value="0">:<input type="text" id="gradSlantXText" size="4">
</div>
<div>
grad slant Y:<input id="gradSlantYRange" type="range" min="-1.0" max="1.0" step="0.01" value="0">:<input type="text" id="gradSlantYText" size="4">
</div>
<div>
grad intercept X:<input id="gradInterceptXRange" type="range" min="-1.0" max="1.0" step="0.01" value="0">:<input type="text" id="gradInterceptXText" size="4">
</div>
<div>
grad intercept Y:<input id="gradInterceptYRange" type="range" min="-1.0" max="1.0" step="0.01" value="0">:<input type="text" id="gradInterceptYText" size="4">
</div>
</div>
</div> <!-- controlPanel -->
<br />
<div style="clear:both">
<span id="srcCanvas1Container" >
<canvas id="srcCanvas1" class="borderRed" width="200" height="200"> src1Canvas </canvas>
</span>
<span id="srcCanvas2Container" >
<canvas id="srcCanvas2" class="borderGreen" width="200" height="200"> src2Canvas </canvas>
</span>
<canvas id="dstCanvas" class="borderBlue" width="200" height="200"> dstCanvas </canvas>
</div>
<p> Drop image files(png,jpg,gif) into red & green box </p>
</div> <!-- container -->
<script type="text/javascript" src="lib/drop.js"> </script>
<script type="text/javascript" src="lib/bind.js"> </script>
<script type="text/javascript" src="lib/canvas.js"> </script>
<script type="text/javascript" src="lib/color.js"> </script>
<script type="text/javascript" src="lib/loading.js"> </script>
<script type="text/javascript" src="lib/worker.js"> </script>
<script type="text/javascript" src="alphablend.js"> </script>
</body>
</html>