Navigation: Up, Table of Contents, Index,

Filled Circles (FilledCircle)

FilledCircle c ( int x, int y, int r);
Creates a filled circle with center (x, y) and radius r.

int c.x () Returns center's x-coordinate.
int c.y () Returns center's y-coordinate.
int c.r () Returns radius of c.

Example

The following code draws a filled circle with center (100, 100) and radius 20. Then it waits for a mouseclick to finish.

#include <ifmwindow>

int main()
{
    wio << FilledCircle(100, 100, 20) << flush;
    wio.wait_for_mouse_click();
}

Next: Class declaration of Ellipse
Navigation: Up, Table of Contents, Index,
Michael Hoffmann. Mon, October 7, 2002.