repo.or.cz
/
PyX.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
fix cross-device link error
[PyX.git]
/
examples
/
path
/
arclen.py
blob
d9c54d24c7cb2cd614fed93a33909005f23139c9
1
from
pyx
import
*
2
3
c
=
canvas
.
canvas
()
4
5
p1
=
path
.
curve
(
0
,
0
,
1
,
0
,
1
,
1
,
2
,
1
)
6
p2
=
path
.
line
(
0
,
0
,
p1
.
arclen
(),
0
)
7
c
.
stroke
(
p1
)
8
c
.
stroke
(
p2
)
9
10
c
.
writeEPSfile
(
"arclen"
)
11
c
.
writePDFfile
(
"arclen"
)
12
c
.
writeSVGfile
(
"arclen"
)