| Trees | Indices | Help |
|
|---|
|
|
OutputLanguage abstracts the drawing backend by providing abstract canvas operations.
This is the parent class for the specific backends; it should not be instantiated directly.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Translate a block of drawing commands by the given x and y offsets. For example:
with out.translate(10,10):
with out.stroke() as path:
path.moveto(0,0)
path.lineto(5,5)
|
Rotate a block of drawing commands by the given angle CCW around the origin. For example:
with out.rotate(45):
with out.stroke() as path:
path.moveto(0,0)
path.lineto(5,5)
|
Return a path which will be stroked. For example: out.setgray(.5) out.setlinewidth(2) with out.stroke() as path: path.moveto(0, 0) path.lineto(5, 5) |
Return a path which will be filled. For example: out.setgray(.5) with out.fill() as path: path.moveto(0, 0) path.lineto(5, 5) path.lineto(10, 0) path.closepath() |
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0alpha3 on Fri Mar 9 18:36:02 2007 | http://epydoc.sourceforge.net |