Home  Contents

gcx:plot

Graphics Core4 Lua Commands

SYNOPSIS

gcx:plot(x, y[, rgb])

DESCRIPTION

Sets the pixel at the given coordinate to the specified color rgb. If color is not given, uses the stored foreground color.

ERRORS

Raises an error if gcx is not a graphics context.

EXAMPLE

Puts a green dot into the center:
gcx:plot(gcx:width()/2, gcx:height()/2, 0x00FF00)

SEE ALSO