Package: gsk

Function gsk:path-builder-quad-to

Lambda List

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

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 end of the curve
y2 -- a number coerced to a single float with the Y coordinate of the end of the curve

Details

Adds a quadratic Bézier curve from the current point to x2, y2 with x1, y1 as the control point. After this, x2, y2 will be the new current point.

Figure: Draw quad

 

See also

#2024-11-14