Package: gsk

Function gsk:path-builder-conic-to

Lambda List

gsk:path-builder-conic-to (builder x1 y1 x2 y2 weight)

Arguments

builder -- a gsk:path-builder instance
x1 -- a number coerced to a single float with the X coordinate of the first control point
y1 -- a number coerced to a single float with the Y coordinate of the first control point
x2 -- a number coerced to a single float with the X coordinate of the second control point
y2 -- a number coerced to a single float with the Y coordinate of the second control point
weight -- a number coerced to a single float with the weight of the control point, must be greater than zero

Details

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.

Figure: Draw conic curve

Since 4.14
 

See also

#2024-11-14