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

## SYNOPSIS

s = tostring(rect)

## DESCRIPTION

A rectangle in string context returns a human readable representation of the rectangle coordinates.

## RETURN VALUE

Returns a string in the form W x H ± X ± Y.

## ERRORS

Raises an error if rect is not a rectangle.

## EXAMPLE

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

## SEE ALSO

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