mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-06-10 20:20:46 -04:00
Make all examples resize to the size of the browser window.
This commit is contained in:
parent
b2e2dd8888
commit
077dc58222
34 changed files with 76 additions and 49 deletions
examples/Scripts
|
@ -3,6 +3,7 @@
|
|||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<title>Example</title>
|
||||
<link rel="stylesheet" href="../css/style.css">
|
||||
<script type="text/javascript">var root = '../../'</script>
|
||||
<script type="text/javascript" src="../../src/load.js"></script>
|
||||
<script type="text/paperscript" canvas="canvas">
|
||||
|
@ -31,10 +32,6 @@
|
|||
path.smooth();
|
||||
}
|
||||
|
||||
function onMouseDrag(event) {
|
||||
onMouseMove(event);
|
||||
}
|
||||
|
||||
function onMouseDown(event) {
|
||||
path.selected = true;
|
||||
}
|
||||
|
@ -45,5 +42,5 @@
|
|||
</script>
|
||||
</head>
|
||||
<body style='background-color: black'>
|
||||
<canvas id='canvas' width=1024 height=768></canvas>
|
||||
<canvas id='canvas' resize='true'></canvas>
|
||||
</body>
|
Loading…
Add table
Add a link
Reference in a new issue