Frames 

 No Frames

Previous Element
Components

Next Element
DataSources


Curve

Draw a curve in the current line style from the current drawing position to the destination location. The curve drawn is a quadratic Bezier curve that uses a single control point to specify the weighting of the curve. A control point close to the line made by the current position and the destination position means a gentle curve in the direction of the control point. As the control point moves from the line the curve will get more exaggerated and acute. Most authoring packages use cubic Bezier curves which allows greater control over the curves but these can all be approximated by quadratic curves. As an alternative to specifying a control point the reflection of a control point used in a previous curve can be used to allow for continuous smooth curves.

Attributes

isRelative When set, coordinates are relative to last drawing position, otherwise coordinates are absolute.
Valuesyes
no
Default Valueno
x X coordinate for the destination position.
TypeFloat
Default Value0
y Y coordinate for the destination position.
TypeFloat
Default Value0
smooth Use the reflection of the control point of the previous curve through the current drawing position. If previous drawing operation was not a curve then this will generate an error. When 'yes', attributes for control point are ignored.
Valuesyes
no
Default Valueno
cx X coordinate for the control position. Not used if 'smooth' is set.
TypeFloat
Default Value0
cy Y coordinate for the control position. Not used if 'smooth' is set.
TypeFloat
Default Value0

Child Elements

None

Parent Elements

Edges
Glyph
ShapeTransform

Examples

User-Defined Font Example
Quadratic Curve Example

Previous Element
Components

Next Element
DataSources