Polygon
Constructor
Polygon <id>
Action
Creates a new Polygon. It is a container to which must be appended a list of points.
Predefined children
points
, that is the list of its points
bounding_box.x
, bounding_box.y
, bounding_box.width
, bounding_box.height
Point
Constructor
Point <id> (double x, double y)
Action
Predefined children
x
and
y
Example
use core
use display
use gui
_main_
Component root {
Frame f ("myFrame", 0, 0, 400, 400)
FillColor _ (100, 150, 200)
Polygon _ {
Point _(100, 90)
Point _(50, 190)
Point _(150, 190)
}
}