-
Notifications
You must be signed in to change notification settings - Fork 1
/
path01.html
35 lines (30 loc) · 897 Bytes
/
path01.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>
<head>
<meta charset="utf-8" />
<title></title>
<script type="text/javascript" src="paper.js"></script>
<script type="text/paperscript" canvas="myCanvas">
var myPath= new Path();
myPath.strokeColor= 'black';
myPath.add( new Point(0, 0 ) );
myPath.add( new Point( 100, 50 ) );
myPath.insert( 1, new Point( 30, 40 ) );
var myPath = new Path();
myPath.add(new Point(40, 115));
myPath.add(new Point(80, 180));
myPath.add(new Point(200, 20));
myPath.fillColor = '#ff0000';
myPath.selected = true;
var myPath = new Path();
myPath.add(new Point(40, 115));
myPath.add(new Point(80, 180));
myPath.add(new Point(200, 20));
myPath.strokeColor = '#ff0000';
myPath.strokeWidth = 10;
</script>
</head>
<body>
<canvas id="myCanvas" resize=""></canvas>
</body>
</html>