Curve drawing tool

Log-in or register.

Curve drawing tool

rsrc/curve-tool.png image 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.

rsrc/curve-tool-config.png image

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.

Example

DrawTool.CURVE(Document, 5, "CROUND", 10, 10, 90, 90, 10, 170);

See also: DrawTool object, Document object

Recent comments

user icon Anonymous
Select background









Vista & Win 7 icons