Tool CURVE
From RealWorld Wiki
CURVE is a drawing tool capable of drawing smooth curves passing through given points. The curve may have arbitrary (non-integral width) and selected cap style.
[edit] Scripting parameters
CURVE tool can be used from scripts. The command in script must have the following arguments:
- width - line width in pixels
- cap_style (optional) - one of "CROUND", "CBUTT", "CSQUARE" (default).
- coords - pairs of floating point numbers representing coordinates. There must be at least 4 numbers to define X and Y coordinates of two points.
- poly (optional) - "CLOSE" or "OPEN" (default). If "CLOSE" is specified, the last point will be connected to the first one.
[edit] Example
DrawTool.CURVE(Document, 5, "CROUND", 10, 10, 90, 90, 10, 170);