cubicTo

fun cubicTo(x1: Float, y1: Float, x2: Float, y2: Float, x3: Float, y3: Float): PathBuilder

Adds cubic from last point towards (x1, y1), then towards (x2, y2), ending at (x3, y3).

Return

this builder for chaining

Parameters

x1

first control point of cubic on x-axis

y1

first control point of cubic on y-axis

x2

second control point of cubic on x-axis

y2

second control point of cubic on y-axis

x3

end point of cubic on x-axis

y3

end point of cubic on y-axis


fun cubicTo(p1: Point, p2: Point, p3: Point): PathBuilder

Adds cubic from last point towards point p1, then towards point p2, ending at point p3.

Return

this builder for chaining

Parameters

p1

first control point of cubic

p2

second control point of cubic

p3

end point of cubic