All Manuals > CAPI Reference Manual > 2 GP Reference Entries

NextPrevUpTopContentsIndex

draw-circle

Function
Summary

Draws a circle.

Package

graphics-ports

Signature

draw-circle port x y radius &rest args &key filled

Arguments

port

A graphics port.

x

A real number.

y

A real number.

radius

A real number.

args

graphics-state parameters passed as keyword arguments.

filled

A boolean.

Description

The draw-circle function draws a circle of the given radius centered on ( x y ). The transform , foreground , background , operation , thickness , scale-thickness , mask , shape-mode and compositing-mode from the port's graphics-state are all used, unless overridden in args . When filled is non- nil , the circle is filled with the foreground color.

Notes

draw-circle does not work properly under a rotation transform (see make-transform). A workaround is to use a many-sided polygon drawn by draw-polygon which will be rotated correctly.

Example
(gp:draw-circle port 100 100 20)
(gp:draw-circle port 100 100 50
                       :filled t
                       :foreground :green)
See also

graphics-state


CAPI Reference Manual - 15 Dec 2011

NextPrevUpTopContentsIndex