File: path.py

package info (click to toggle)
pyx 0.11.1-2
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 3,468 kB
  • sloc: python: 18,575; ansic: 99; makefile: 91; sh: 9
file content (8 lines) | stat: -rw-r--r-- 184 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
from pyx import *

c = canvas.canvas()
c.stroke(path.line(0, 0, 3, 0))
c.stroke(path.rect(0, 1, 1, 1))
c.fill(path.circle(2.5, 1.5, 0.5))
c.writeEPSfile("path")
c.writePDFfile("path")