To understand how to declare and draw a shape please refer, to this document.
To declare and draw a LINE shape named
TheBigRedLine between the points
(100, 100) and
(200, 200) in color Red we write the following statement.
shape TheBigRedLine(line): .point1 = (100, 100) .point2 = (200, 200) .thickness = 2 .color = RED endshape
|starting point of the line||point||-||Yes|
|ending point of the line||point||-||Yes|
|the thickness of the line||No|
|the color of the line||builtin colors||No|
Notice any errors or typos? Please let us know or feel free to edit line.md and issue a pull request.