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

## SYNOPSIS

gcx:cls([color])

## DESCRIPTION

Clears the complete context. If no color value is given, uses the context's own stored background color.

## ERRORS

Raises an error if gcx is not a graphics context.

## EXAMPLE

>
gcx:cls(0x008080)

## SEE ALSO

gcx:bgcolor, gcx:box, gcx:circle, gcx:color, gcx:fillcircle, gcx:fill, gcx:line, gcx:pixel, gcx:plot, gcx:text