Draws an arc.

graphics-ports

draw-arc `port` `x` `y` `width` `height` `start-angle` `sweep-angle` &rest `args` &key `filled`

port⇩ |
A graphics port. |

x⇩ |
A real number. |

y⇩ |
A real number. |

width⇩ |
A real number. |

height⇩ |
A real number. |

start-angle⇩ |
A real number. |

sweep-angle⇩ |
A real number. |

args⇩ |
graphics-state parameters passed as keyword arguments. |

filled⇩ |
A boolean. |

The function `draw-arc`

draws an arc contained in the rectangle from (`x` `y`) to (`x`+`width` `y`+`height`) from `start-angle` to `start-angle`+`sweep-angle`. Both angles are specified in radians. Currently, arcs are parts of ellipses whose major and minor axes are parallel to the screen axes. When `port`'s `drawing-mode` is `:quality`

the arc is transformed properly, but if `drawing-mode` is `:compatible`

and `port` has rotation in its transform, the enclosing rectangle is modified to be the external enclosing orthogonal rectangle of the rotated rectangle. The start angle is rotated. The `transform`, `foreground`, `background`, `operation`, `pattern`, `thickness`, `scale-thickness`, `mask`, `shape-mode` and `compositing-mode` from `port`'s graphics-state are all used, unless overridden in `args`. Additionally on X11/Motif only, `stipple` is used. When `filled` is non-nil, a sector is drawn.

*CAPI User Guide and Reference Manual (Macintosh version) - 01 Dec 2021 19:31:44*