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