drawCircle method

Point drawCircle(
  1. Point center,
  2. double radius
)

Draw a circle with given center and radius.

Equivalent to PyMuPDF's shape.draw_circle().

Implementation

Point drawCircle(Point center, double radius) {
  return drawOval(
    Rect(
      center.x - radius,
      center.y - radius,
      center.x + radius,
      center.y + radius,
    ),
  );
}