-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbitdepth.html
55 lines (55 loc) · 2.44 KB
/
bitdepth.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
<html>
<head>
<meta name="copyright" content="Copyright © 2018/10/16- [email protected] . All Rights Reserved.">
<meta charset="utf-8">
<title> Color Bit Depth </title>
<link rel="stylesheet" href="index.css">
</head>
<body>
<div class="container">
<div class="controlPanel" style="float:left">
<div style="float:left">
maxWidthHeight:<input id="maxWidthHeightRange" type="range" min="16" max="2048" step="1" value="640">:<input type="text" id="maxWidthHeightText" size="5">
<br />
<div style="float:left">
量子化: <br />
<select id="quantizeSelect" size="3">
<option value="nn" selected> 最近傍 </option>
<option value="equalize" > 均等化 </option>
<option value="inverse" > 逆変換 </option>
</select>
</div>
<div style="float:left">
Dither: <br />
<select id="ditherSelect" size="3">
<option value="none" selected> 無し </option>
<option value="random" > ランダム </option>
</select>
</div>
<div id="canvasContainer" style="clear:both"> </div>
<div style="float:left">
srcBitDepth:<input id="srcBitDepthRange" type="range" min="1" max="8" step="1" value="8">:<input type="text" id="srcBitDepthText" size="2">
<br />
dstBitDepth:<input id="dstBitDepthRange" type="range" min="1" max="8" step="1" value="4">:<input type="text" id="dstBitDepthText" size="2">
</div>
</div>
<div style="float:left">
<canvas id="graphCanvas" class="borderGreen" width=256 height=256> graphCanvas </canvas>
</div>
</div> <!-- controlPanel -->
<div id="canvasContainer" style="clear:both">
<canvas id="srcCanvas" class="borderRed" width=200 height=200> srcCanvas </canvas>
<canvas id="dstCanvas" class="borderBlue" width=200 height=200> dstCanvas </canvas>
</div> <!-- canvasContainer -->
</div> <!-- container -->
<div id="canvasContainer" style="clear:both">
<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/graph.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="bitdepth.js"> </script>
</div> <!-- canvasContainer -->
</body>
</html>