Home | Trees | Indices | Help |
---|
|
object --+ | DrawLang
Use this to generate stepped-paths with curved corners. It uses a simple 'language' comprised of:
The initial direction is North. Unless you begin with 'r' or 'l', you will be going forward directly upwards.
To draw a square with round corners: r10 f50 r10 f50 r10 f50 r10 f50 (Of course, you should simply use the RoundRect() class for shapes like that.)
r50 f10 r50 f60 r f110 r f60 : Would draw a square with two big curved corners on top (both of radius 50.) Note from this example that the radius is part of the total width; so 50 + 10 + 50 = 110
Use the setup() method to pass your string in. This will create a list of python-cairo line and arc commands that get drawn when you call draw(ctx).
Instance Methods | |||
|
|||
|
|||
|
|||
Inherited from |
Properties | |
Inherited from |
Method Details |
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Tue May 26 16:03:26 2009 | http://epydoc.sourceforge.net |