conicTo

fun conicTo(x1: Float, y1: Float, x2: Float, y2: Float, w: Float): Path

Adds conic from last point towards (x1, y1), to (x2, y2), weighted by w.

If Path is empty, or last PathVerb is PathVerb.CLOSE, last point is set to (0, 0) before adding conic.

Appends PathVerb.MOVE to verb array and (0, 0) to Point array, if needed.

If w is finite and not one, appends PathVerb.CONIC to verb array; and (x1, y1), (x2, y2) to Point array; and w to conic weights.

If w is one, appends PathVerb.QUAD to verb array, and (x1, y1), (x2, y2) to Point array.

If w is not finite, appends PathVerb.LINE twice to verb array, and (x1, y1), (x2, y2) to Point array.

Return

reference to Path

Parameters

x1

control Point of conic on x-axis

y1

control Point of conic on y-axis

x2

end Point of conic on x-axis

y2

end Point of conic on y-axis

w

weight of added conic


fun conicTo(p1: Point, p2: Point, w: Float): Path

Adds conic from last point towards Point p1, to Point p2, weighted by w.

If Path is empty, or last PathVerb is PathVerb.CLOSE, last point is set to (0, 0) before adding conic.

Appends PathVerb.MOVE to verb array and (0, 0) to Point array, if needed.

If w is finite and not one, appends PathVerb.CONIC to verb array; and Point p1, p2 to Point array; and w to conic weights.

If w is one, appends PathVerb.QUAD to verb array, and Point p1, p2 to Point array.

If w is not finite, appends PathVerb.LINE twice to verb array, and Point p1, p2 to Point array.

Return

reference to Path

Parameters

p1

control Point of added conic

p2

end Point of added conic

w

weight of added conic