Line
Constructor
Line <id> (double x1, double y1, double x2, double y2)
Action
Draws a line from the point{x1, y1}
to the point {x2, y2}
.
Predefined children
x1, y1, x2, y2
.
Example
use core
use display
use gui
_main_
Component root {
Frame f ("myFrame", 0, 0, 400, 400)
// a line must have a OutlineColor to be seen
OutlineColor _ (255, 0, 0)
Line l (200, 200, 400, 400)
}