bezierVertex method
void
bezierVertex(
- dynamic c1x,
- dynamic c1y,
- dynamic c2x,
- dynamic c2y,
- dynamic x2,
- dynamic y2,
Implementation
void bezierVertex(c1x, c1y, c2x, c2y, x2, y2) {
if (_shape == null) {
throw Exception("You need to call beginShape() before calling bezierVertex().");
}
if (_shape!.mode != null) {
throw Exception(
"You can't add a bezier vertex for a custom shape when using a non-default mode: ${_shape!.mode}");
}
_shape!.vertices.add(_BezierVertex(c1x, c1y, c2x, c2y, x2, y2));
}