quadraticVertex method

void quadraticVertex(
  1. dynamic cx,
  2. dynamic cy,
  3. dynamic x2,
  4. dynamic y2,
)

Implementation

void quadraticVertex(cx, cy, x2, y2) {
  if (_shape == null) {
    throw Exception("You need to call beginShape() before calling quadraticVertex().");
  }
  if (_shape!.mode != null) {
    throw Exception(
        "You can't add a quadratic vertex for a custom shape when using a non-default mode: ${_shape!.mode}");
  }

  _shape!.vertices.add(_QuadraticVertex(cx, cy, x2, y2));
}