AggPas - Anti-Grain Geomertry for Object Pascal

TAgg2D.QuadricCurveRel(dxTo, dyTo)

Description

Adds a SQUAD_TO_REL path command to the current subpath. A new Quadratic Bézier curve starts at the Current Point position, bends by definition of calculated control point and ends at Current Point position plus defined delta coordinates. The control point is calculated as the reflection of the control point on the previous command relative to the Current Point. If there is no previous command or if the previous command is not a QuadCurve, the missing control point is the same as the Current Point. Current Point is finally changed to be at the end of a new Bézier curve segment.

This Quadratic Bézier curve definition is compliant with SVG specification.

Parameters

dxTo: double

Change (delta +/-) to the Current Point coordinate on X axis [in subpixels].

dyTo: double

Change (delta +/-) to the Current Point coordinate on Y axis [in subpixels].

Example

See the Path Example page.