The OpenD Programming Language

Context.relCurveTo

Relative-coordinate version of curveTo(). All offsets are relative to the current point. Adds a cubic Bézier spline to the path from the current point to a point offset from the current point by rp3, using points offset by rp1 and rp2 as the control points. After this call the current point will be offset by rp3.

Given a current point of (x, y), cairo_rel_curve_to(cr, dx1, dy1, dx2, dy2, dx3, dy3) is logically equivalent to cairo_curve_to(cr, x+dx1, y+dy1, x+dx2, y+dy2, x+dx3, y+dy3).

It is an error to call this function with no current point. Doing so will cause an CairoException with a status of CAIRO_STATUS_NO_CURRENT_POINT.

  1. void relCurveTo(Point!double rp1, Point!double rp2, Point!double rp3)
    struct Context
    void
    relCurveTo
    (
    Point!double rp1
    ,
    Point!double rp2
    ,
    Point!double rp3
    )
  2. void relCurveTo(double rp1x, double rp1y, double rp2x, double rp2y, double rp3x, double rp3y)

Parameters

rp1 Point!double

First control point

rp2 Point!double

Second control point

rp3 Point!double

offset to the end of the curve

Meta