-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathhalftone.html
46 lines (46 loc) · 3.02 KB
/
halftone.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
<html>
<head>
<meta name="copyright" content="Copyright © 2022/08/28- [email protected] . All Rights Reserved.">
<meta charset="utf-8">
<title> Halftone </title>
<link rel="stylesheet" href="index.css">
</head>
<body>
<div class="container">
<div class="controlPanel" style="display:flex">
<div>
maxWidthHeight:<input id="maxWidthHeightRange" type="range" min="16" max="2048" step="1" value="640">:<input type="text" id="maxWidthHeightText" size="5"> <br />
scale:<input id="scaleRange" type="range" min="1" max="8" step="0.1" value="1.0">:<input type="text" id="scaleText" size="4"> <br />
size:<input id="sizeRange" type="range" min="1" max="32" step="1" value="8">:<input type="text" id="sizeText" size="3">
</div>
<div>
cRotate:<input id="cRotateRange" type="range" min="0" max="180" step="1" value="15">:<input type="text" id="cRotateText" size="4"> <br />
mRotate:<input id="mRotateRange" type="range" min="0" max="180" step="1" value="30">:<input type="text" id="mRotateText" size="4"> <br />
yRotate:<input id="yRotateRange" type="range" min="0" max="180" step="1" value="45">:<input type="text" id="yRotateText" size="4"> <br />
kRotate:<input id="kRotateRange" type="range" min="0" max="180" step="1" value="75">:<input type="text" id="kRotateText" size="4">
</div>
<div>
<button type="button" id="rc1Button"> 15, 30, 45, 75 </button> <br />
<button type="button" id="rc2Button"> 75, 15,0, 45 </button> <br />
<button type="button" id="rc3Button"> 15, 45, 0, 75 </button> <br />
<button type="button" id="rc4Button"> 105, 75, 90, 15 </button> <br />
<button type="button" id="rc5Button"> 20, 80, 65, 50 </button>
</div>
<div>
cAmount:<input id="cAmountRange" type="range" min="0" max="100" step="1" value="100">:<input type="text" id="cAmountText" size="4"> <br />
mAmount:<input id="mAmountRange" type="range" min="0" max="100" step="1" value="100">:<input type="text" id="mAmountText" size="4"> <br />
yAmount:<input id="yAmountRange" type="range" min="0" max="100" step="1" value="100">:<input type="text" id="yAmountText" size="4"> <br />
kAmount:<input id="kAmountRange" type="range" min="0" max="100" step="1" value="100">:<input type="text" id="kAmountText" size="4">
</div>
</div> <!-- controlPanel -->
<canvas id="srcCanvas" class="borderRed" width=200 height=200> srcCanvas </canvas>
<canvas id="dstCanvas" class="borderBlue" width=200 height=200> dstCanvas </canvas>
</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/utils.js"> </script>
<script type="text/javascript" src="lib/color.js"> </script>
<script type="text/javascript" src="lib/canvas.js"> </script>
<script type="text/javascript" src="halftone.js"> </script>
</body>
</html>