Home Contents | # rect() | Graphics | Core4 Lua Commands

## SYNOPSIS

x, y, w, h = rect()

## DESCRIPTION

A rectangle in function context returns the x, y coordinates, the width and the height.

## ERRORS

Raises an error if rect is not a rectangle.

## EXAMPLE

> >
r = gfx.rect(10,20,30,40) print (r())
10 20 30 40

## SEE ALSO

gfx.rect, rect:bottom, rect:bottomright, rect:height, rect:left, rect:right, rect:size, rect:top, rect:topleft, rect:width, rect:x, rect:y, tostring(rect)