Image::rectangle(3) Draw a rectangle.

SYNOPSIS

Void rectangle( Image img, Int x1, Int y1, Int x2, Int y2, Colour col, Bool filled=false )

ARGUMENTS

img The image

x1 X coordinate of first corner

y1 Y coordinate of first corner

x2 X coordinate of opposite corner

y2 Y coordinate of opposite corner

col Colour of the rectangle's border

filled If this is true, the rectangle will be filled with the same colour as the border.

DESCRIPTION

Draws a rectangle with opposite corners at ( x1 , y1 ) and ( x2 , y2 ).

AUTHORS

Kaya standard library by Edwin Brady, Chris Morris and others ([email protected]). For further information see http://kayalang.org/

LICENSE

The Kaya standard library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (version 2.1 or any later version) as published by the Free Software Foundation.

RELATED

Image.dashedLine(3kaya)

Image.ellipse(3kaya)

Image.line(3kaya)

Image.poly(3kaya)