conicCurveTo method
Draws a conic Bezier curve from the current drawing position to the
specified anchor point (anchorX
, anchorY
), using the specified control
point(controlX
, controlY
) and weight
.
If relative
is true, the curve is drawn relative to the current position.
A conic Bezier curve is a quadratic Bezier curve that has a "weight" parameter that controls how much the curve bends. The curve is defined by a control point that determines the direction and magnitude of the curve's bend. See also:
- Path.conicTo, which is used to draw a conic curve in a Path.
- Path.quadraticBezierTo, which is used to draw a quadratic Bezier curve.
- cubicCurveTo, which is used to draw a cubic Bezier curve.
The method returns this, which allows for method chaining.
Implementation
Graphics conicCurveTo(
double controlX,
double controlY,
double anchorX,
double anchorY,
double weight, [
bool relative = false,
]) {
if (!relative) {
_path!.conicTo(controlX, controlY, anchorX, anchorY, weight);
} else {
_path!.relativeConicTo(controlX, controlY, anchorX, anchorY, weight);
}
return this;
}