-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
29 lines (29 loc) · 1.04 KB
/
index.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
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="user-scalable=no" />
<title>Canvas slicer</title>
<link href="main.css" rel="stylesheet">
<script type="text/javascript" src="lib/hammer.js"></script>
<script type="text/javascript" src="js/CanvasShredder.js"></script>
</head>
<body>
<h1>Split image to tiles in browser with canvas</h1>
<span>Choose image:</span>
<input type="file" id="file-input"><br/>
<span>Output updates per second:</span>
<span id="fps"></span><br/>
<span>Image size:</span>
<span id="image-info"></span><br/>
<span>Click area below to select tile position</span>
<div id="preview-area">
<div id="select-position"></div>
<div class="buttons">
<div class="ctrl-btn rotate">R</div>
<div class="ctrl-btn scale">S</div>
</div>
<canvas id="dst-canvas" width="256" height="256"></canvas>
</div>
<script type="text/javascript" src="js/app.js"></script>
</body>
</html>