Draw a circle sector given circle center, one arc end point and the angle of the arc. Parameters: center -- center of circle point -- arc end point beta -- angle of arc (degrees) fullSector -- connect arc ends with center
(
page: Page,
center: point_like,
point: point_like,
beta: float,
color: OptSeq = (0,),
fill: OptSeq = None,
dashes: OptStr = None,
fullSector: bool = True,
morph: OptSeq = None,
width: float = 1,
closePath: bool = False,
lineCap: int = 0,
lineJoin: int = 0,
overlay: bool = True,
stroke_opacity: float = 1,
fill_opacity: float = 1,
oc: int = 0,
)
| 2255 | |
| 2256 | |
| 2257 | def draw_sector( |
| 2258 | page: Page, |
| 2259 | center: point_like, |
| 2260 | point: point_like, |
| 2261 | beta: float, |
| 2262 | color: OptSeq = (0,), |
| 2263 | fill: OptSeq = None, |
| 2264 | dashes: OptStr = None, |
| 2265 | fullSector: bool = True, |
| 2266 | morph: OptSeq = None, |
| 2267 | width: float = 1, |
| 2268 | closePath: bool = False, |
| 2269 | lineCap: int = 0, |
| 2270 | lineJoin: int = 0, |
| 2271 | overlay: bool = True, |
| 2272 | stroke_opacity: float = 1, |
| 2273 | fill_opacity: float = 1, |
| 2274 | oc: int = 0, |
| 2275 | ) -> Point: |
| 2276 | """Draw a circle sector given circle center, one arc end point and the angle of the arc. |
| 2277 | |
| 2278 | Parameters: |
| 2279 | center -- center of circle |
| 2280 | point -- arc end point |
| 2281 | beta -- angle of arc (degrees) |
| 2282 | fullSector -- connect arc ends with center |
| 2283 | """ |
| 2284 | img = page.new_shape() |
| 2285 | Q = img.draw_sector(Point(center), Point(point), beta, fullSector=fullSector) |
| 2286 | img.finish( |
| 2287 | color=color, |
| 2288 | fill=fill, |
| 2289 | dashes=dashes, |
| 2290 | width=width, |
| 2291 | lineCap=lineCap, |
| 2292 | lineJoin=lineJoin, |
| 2293 | morph=morph, |
| 2294 | closePath=closePath, |
| 2295 | stroke_opacity=stroke_opacity, |
| 2296 | fill_opacity=fill_opacity, |
| 2297 | oc=oc, |
| 2298 | ) |
| 2299 | img.commit(overlay) |
| 2300 | |
| 2301 | return Q |
| 2302 | |
| 2303 | |
| 2304 | # ---------------------------------------------------------------------- |
nothing calls this directly
no test coverage detected
searching dependent graphs…