MCPcopy Create free account
hub / github.com/pymupdf/PyMuPDF / draw_circle

Method draw_circle

src_classic/utils.py:3213–3219  ·  view source on GitHub ↗

Draw a circle given its center and radius.

(self, center: point_like, radius: float)

Source from the content-addressed store, hash-verified

3211 return self.lastPoint
3212
3213 def draw_circle(self, center: point_like, radius: float) -> Point:
3214 """Draw a circle given its center and radius."""
3215 if not radius > EPSILON:
3216 raise ValueError("radius must be positive")
3217 center = Point(center)
3218 p1 = center - (radius, 0)
3219 return self.draw_sector(center, p1, 360, fullSector=False)
3220
3221 def draw_curve(
3222 self,

Callers 1

draw_circleFunction · 0.45

Calls 2

draw_sectorMethod · 0.95
PointClass · 0.85

Tested by

no test coverage detected