Canvasity.bezierCurveTo

Extend the current subpath with a cubic Bezier curve.

The curve will go from the current end point (or the first control point if the current path is empty) to the given point, which will become the new end point. The curve will be tangent toward the first control point at the beginning and tangent toward the second control point at the end. The current transform at the time that this is called will affect all points passed in.

Tip: to make multiple curves join smoothly, ensure that each new end point is on a line between the adjacent control points.

  1. void bezierCurveTo(float c1_x, float c1_y, float c2_x, float c2_y, float x, float y)
    struct Canvasity
    nothrow @nogc
    void
    bezierCurveTo
    (
    float c1_x
    ,
    float c1_y
    ,
    float c2_x
    ,
    float c2_y
    ,
    float x
    ,
    float y
    )
  2. void bezierCurveTo(T c1, T c2, T p)
  3. this(Image buffer, CanvasOptions options)
  4. void initialize(Image buffer, CanvasOptions options)

Meta