1Image.poly(3kaya) Kaya module reference Image.poly(3kaya)
2
3
4
6 Image::poly - Draw a polygon.
7
9 Void poly( Image img, [Pair<Int, Int> ] points, Colour col, Bool
10 filled=false )
11
13 img The image
14
15 points A list of pairs (in X,Y order) giving the corners of the poly‐
16 gon.
17
18 col Colour of the polygon's border
19
20 filled If this is true, the polygon will be filled with the same colour
21 as the border.
22
24 Draws a polygon with the specified corners.
25
27 Kaya standard library by Edwin Brady, Chris Morris and others
28 (kaya@kayalang.org). For further information see http://kayalang.org/
29
31 The Kaya standard library is free software; you can redistribute it
32 and/or modify it under the terms of the GNU Lesser General Public
33 License (version 2.1 or any later version) as published by the Free
34 Software Foundation.
35
37 Image.ellipse (3kaya)
38 Image.rectangle (3kaya)
39
40
41
42Kaya December 2010 Image.poly(3kaya)