DrawingContext.bezier

Draw a cubic Bezier curve.

The arguments are pairs of points. At least 4 pairs must be specified. Each point xn, yn on the curve is associated with a control point cxn, cyn. The first point, x1, y1, is the starting point. The last point, xn, yn, is the ending point. Other point/control point pairs specify intermediate points on a polybezier curve.

class DrawingContext
void
bezier
(
size_t x1
,
size_t y1
,
size_t cx1
,
size_t cy1
,
size_t cx2
,
size_t cy2
,
size_t x2
,
size_t y2
,
size_t[] points...
)
in { assert (points.length % 2 == 0, "bezier needs an even number of arguments, " ~ "each x coordinate needs a coresponding y coordinate."); }

Meta