-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
30 lines (29 loc) · 893 Bytes
/
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
30
<!DOCTYPE HTML>
<html>
<head>
<meta name="viewport" content="width=device-width,initial-scale=1">
<script type="text/javascript" src="dissolve.js"></script>
<style>
body {
margin: 0px;
padding: 0px;
}
</style>
<script src="http://d3lp1msu2r81bx.cloudfront.net/kjs/js/lib/kinetic-v4.5.4.min.js"></script>
</head>
<body onmousedown="return false;">
<div id="container" style="width:200;height:200;"></div>
<script defer="defer">
var stage = new Kinetic.Stage({
container: 'container',
width: 200,
height: 200
});
var drawLayer = new Kinetic.Layer();
stage.add(drawLayer);
displaySlices('yoda.jpg', 100, 100, drawLayer);
// displaySlices(imageSource, numberOfSlices, interval, drawLayer);
//displaySlices('dv.jpg', 10, 100, drawLayer);
</script>
</body>
</html>