Draws an ellipse.
graphics-ports
draw-ellipse port x y x-radius y-radius &rest args &key filled
port⇩ |
A graphics port. |
x⇩ |
A real number. |
y⇩ |
A real number. |
x-radius⇩ |
A real number. |
y-radius⇩ |
A real number. |
args⇩ |
graphics-state parameters passed as keyword arguments. |
filled⇩ |
A boolean. |
The function draw-ellipse
draws an ellipse of the given radii x-radius and y-radius centered on (x y). The transform, foreground, background, operation, thickness, scale-thickness, mask, shape-mode and compositing-mode from port's graphics-state are all used, unless overridden in args. When filled is true, the ellipse is filled with the foreground color.
draw-ellipse
does not work properly under a rotation transform when port's drawing-mode is :compatible
. A workaround is to use a many-sided polygon drawn by draw-polygon which will be rotated correctly.draw-ellipse
does work properly under any transform when port's drawing-mode is :quality
.(gp:draw-ellipse port 100 100 20 40)
(gp:draw-ellipse port 100 100 50 10 :filled t :foreground :green)
CAPI User Guide and Reference Manual (Windows version) - 01 Dec 2021 19:34:15