Home Contents | # gcx:circle | Graphics | Core4 Lua Commands

## SYNOPSIS

1. gcx:circle(x, y, r[, rgb])
2. gcx:fillcircle(x, y, r[, rgb])

## DESCRIPTION

Draws a circle with the center at x, y of radius r using the specified color rgb. If color is not given, uses the stored foreground color.

The function gcx:circle draws an outline of one pixel, while gcx:fillcircle fills the whole area.

## ERRORS

Raises an error if gcx is not a graphics context.

## EXAMPLE

Fills a red circle:
>
gcx:fill(gcx:width()/2, gcx:height()/2, gcx:width()/4, 0xFF0000)

## SEE ALSO

gcx:bgcolor, gcx:box, gcx:cls, gcx:color, gcx:fill, gcx:line, gcx:pixel, gcx:plot, gcx:text