conicTo

fun conicTo(x1: <Error class: unknown class>, y1: <Error class: unknown class>, x2: <Error class: unknown class>, y2: <Error class: unknown class>, weight: <Error class: unknown class>)

Adds a conic curve from the current point to @x2, @y2 with the given @weight and @x1, @y1 as the control point.

The weight determines how strongly the curve is pulled towards the control point. A conic with weight 1 is identical to a quadratic Bézier curve with the same points.

Conic curves can be used to draw ellipses and circles. They are also known as rational quadratic Bézier curves.

After this, @x2, @y2 will be the new current point.

Conic To

Since

4.14

Parameters

x1

x coordinate of control point

y1

y coordinate of control point

x2

x coordinate of the end of the curve

y2

y coordinate of the end of the curve

weight

weight of the control point, must be greater than zero