Draw a circle given its center and radius.
(
page: 'Page',
center: point_like,
radius: float,
color: OptSeq = (0,),
fill: OptSeq = None,
morph: OptSeq = None,
dashes: OptStr = None,
width: float = 1,
lineCap: int = 0,
lineJoin: int = 0,
overlay: bool = True,
stroke_opacity: float = 1,
fill_opacity: float = 1,
oc: int = 0,
)
| 11010 | return Q |
| 11011 | |
| 11012 | def draw_circle( |
| 11013 | page: 'Page', |
| 11014 | center: point_like, |
| 11015 | radius: float, |
| 11016 | color: OptSeq = (0,), |
| 11017 | fill: OptSeq = None, |
| 11018 | morph: OptSeq = None, |
| 11019 | dashes: OptStr = None, |
| 11020 | width: float = 1, |
| 11021 | lineCap: int = 0, |
| 11022 | lineJoin: int = 0, |
| 11023 | overlay: bool = True, |
| 11024 | stroke_opacity: float = 1, |
| 11025 | fill_opacity: float = 1, |
| 11026 | oc: int = 0, |
| 11027 | ) -> Point: |
| 11028 | """Draw a circle given its center and radius.""" |
| 11029 | img = page.new_shape() |
| 11030 | Q = img.draw_circle(Point(center), radius) |
| 11031 | img.finish( |
| 11032 | color=color, |
| 11033 | fill=fill, |
| 11034 | dashes=dashes, |
| 11035 | width=width, |
| 11036 | lineCap=lineCap, |
| 11037 | lineJoin=lineJoin, |
| 11038 | morph=morph, |
| 11039 | stroke_opacity=stroke_opacity, |
| 11040 | fill_opacity=fill_opacity, |
| 11041 | oc=oc, |
| 11042 | ) |
| 11043 | img.commit(overlay) |
| 11044 | return Q |
| 11045 | |
| 11046 | def draw_curve( |
| 11047 | page: 'Page', |