Home Contents | # gfx.rect | Graphics | Core4 Lua Commands

## SYNOPSIS

r = gfx.rect([x, y, w, h])

## DESCRIPTION

Creates a rectangle instance. A rectangle describes a rectangular area of coordinates.

## RETURN VALUE

A rectangle handle.

## EXAMPLE

> >
r = gfx.rect(10,20,30,40) print (r:bottomright())
39 59

## SEE ALSO

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)