-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
36 lines (30 loc) · 1.14 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
30
31
32
33
34
35
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>FlyPaper v 0.3.5 - a basic example</title>
<style type="text/css" media="screen">
#ctx {
border: 1px solid #999;
}
</style>
<script type="text/javascript" src="libs/paper.js"></script>
<!-- add FlyPaper -->
<script type="text/javascript" src="dist/flypaper.js"></script>
<script type="text/javascript" src="examples/templates.js"></script>
</head>
<body>
<h2>FlyPaper for Paper.js : Basic Example from templates.js</h2>
<canvas id="ctx" ></canvas>
<h3>This is a most basic flypaper object</h3>
<p>Press the "i" key to toggle the info panel and learn more.</p>
<p>Press the "r key" to rotate the oval</p>
<p>Press the "s" key to select the oval</p>
<p>drag the oval around, and watch for changes in the info panel sections</p>
<h3>Some other examples</h3>
<ul>
<li><a href="examples/flymotion.html">motion: Bob</a>, This same template object, with the "bob" motion added to it.</li>
<li><a href="examples/bobfly.html">Bobfly</a>, a more complicated animated object also using the "bob" motion.</li>
</ul>
</body>
</html>