-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
29 lines (28 loc) · 716 Bytes
/
Copy pathindex.html
File metadata and controls
29 lines (28 loc) · 716 Bytes
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Paper.js example</title>
<!-- Include Paper.js. -->
<script src="node_modules/paper/dist/paper-full.min.js"></script>
<!-- Add some styles. -->
<style>
html,
body {
margin: 0;
overflow: hidden;
height: 100%;
}
canvas {
width: 100%;
height: 100%;
}
</style>
</head>
<body>
<!-- Create a canvas on which things will be drawn. -->
<canvas id="canvas" resize></canvas>
<!-- Link `index.js` as a PaperScript bound to the canvas. -->
<script type="text/paperscript" canvas="canvas" src="index.js"></script>
</body>
</html>