Library Apps NextCanvas Shapes Polyline

Polyline

This tool creates a polyline or a polygon that can consist of array of points. Coordinates of each point can be adjusted via mouse.

By default, polyline is shallow i.e., have no fill. This can be changed by checking on the Polygon property inside the Object Inspector.

To add a new polyline:

  1. Click on the tool and add a first point.
  2. Continue adding new points on the artboard.
  3. When done, press Enter key. Alternatively, you can click on the first point and close the shape. In that case pressing the Enter key is not needed.

Individual points can now be moved inside the artboard.

Example code generated by this tool looks like:

pas
Pen.Color := clFuchsia;
Polyline([Point(12, 11), Point(9, 21), Point(16, 34), Point(37, 35), 
Point(41, 12), Point(25, 3), Point(12, 11)]);

Or with Polygon property set to True:

pas
Pen.Color := clFuchsia;
Brush.Color := clRed;
Polygon([Point(12, 11), Point(9, 21), Point(16, 34), Point(37, 35), 
Point(41, 12), Point(25, 3), Point(12, 11)]);

Sign in