-
Notifications
You must be signed in to change notification settings - Fork 2
/
gravitylens.html
32 lines (32 loc) · 1.54 KB
/
gravitylens.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
<html>
<head>
<meta name="copyright" content="Copyright © 2024/02/04- [email protected] . All Rights Reserved.">
<meta charset="utf-8">
<title> copy </title>
<link rel="stylesheet" href="index.css">
</head>
<body>
<div id="container" class="vertical">
<div id="control" class="horizontal">
<div>
maxWidthHeight:<input id="maxWidthHeight" type="range" min="16" max="2048" step="1" value="640">:<input type="text" id="maxWidthHeightText" size="5">
</div>
<div>
amount:<input id="amount" type="range" min="-1024" max="1024" step="1" value="-512">:<input type="text" id="amountText" size="5">
</div>
<div>
scale:<input id="scale" type="range" min="0.01" max="1" step="0.01" value="0.05">:<input type="text" id="scaleText" size="5">
</div>
</div> <!-- control -->
<div id="display" class="horizontal">
<canvas id="srcCanvas" class="borderRed" width=200 height=200> srcCanvas </canvas>
<canvas id="dstCanvas" class="borderBlue" width=200 height=200> dstCanvas </canvas>
</div> <!-- display -->
</div> <!-- container -->
<small> (c) <a href="https://twitter.com/PeRossello/status/1753016577824280621"> https://twitter.com/PeRossello/status/1753016577824280621 </a> </small>
<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="gravitylens.js"> </script>
</body>
</html>