mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
20 lines
No EOL
618 B
HTML
20 lines
No EOL
618 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<title>Example</title>
|
|
<script type="text/javascript">var root = '../../'</script>
|
|
<script type="text/javascript" src="../../src/load.js"></script>
|
|
<script type="text/paperscript" canvas="canvas">
|
|
var path = new Path.Circle(new Point(), 100);
|
|
path.strokeWidth = 30;
|
|
path.fillColor = null;
|
|
path.strokeColor = 'black';
|
|
var symbol = new PlacedSymbol(path);
|
|
symbol.position = new Point(200, 200);
|
|
symbol.scale(1, 0.5);
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<canvas id='canvas' width=1024 height=768></canvas>
|
|
</body> |