Provided by: kaya_0.4.4-6ubuntu3_amd64
Image::rectangle - Draw a rectangle.
Void rectangle( Image img, Int x1, Int y1, Int x2, Int y2, Colour col, Bool filled=false )
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.
Draws a rectangle with opposite corners at ( x1 , y1 ) and ( x2 , y2 ).
Kaya standard library by Edwin Brady, Chris Morris and others (email@example.com). For further information see http://kayalang.org/
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.
Image.dashedLine (3kaya) Image.ellipse (3kaya) Image.line (3kaya) Image.poly (3kaya)