SimpleVG › Tutorial › Chapter 6

Chapter 6: Lines and Curves

Goal Draw straight lines, multi-segment polylines and smooth Bézier curves, and style lines with thickness, dashes and arrowheads.

Pipework, flow arrows, outlines and leader lines are all made of lines. SimpleVG gives you several tools for them, all in the BASIC SHAPES section of the Toolbox.

The Basic Shapes section of the Toolbox listing Rectangle, Circle, Line, Polyline, Polygon, Star, Arrow, Arc, Bezier Pen, Freehand and Text

Part 1: A straight line with an arrowhead

Choose the Line tool (L), then press and drag across the canvas. With Snap on, the ends land on grid points, so a horizontal drag gives a perfectly level line.

With the line selected, the Inspector offers the line styling controls:

A thick dashed line with an arrowhead at its right end, with the Inspector showing the stroke and marker settings
Note There is also a dedicated Arrow tool in the Toolbox, which draws a line with an arrowhead already on its end.

Part 2: Polylines

A polyline is a chain of straight segments, ideal for pipe runs and outlines. Choose the Polyline tool (P) and click once for each corner. To finish, double-click the last point, or press Enter.

A four-point zigzag polyline drawn on the canvas

The whole chain is one shape, so you can move it, colour it and give it markers as a single piece.

Part 3: Bézier curves

For smooth curves, use the Bézier Pen (B). Each point you place is a node:

A smooth curved path with its purple node handles visible, selected on the canvas

Select the finished curve with the Select tool and its nodes and handles appear as purple dots. Drag a node to move that point, or drag a handle to change the curve. Tick Close Path Loop (Z) in the Inspector to join the end back to the start and make a closed shape you can fill.

Take your time, and use undo Curves are about feel. If a curve is not right, press Ctrl+Z and try again, or select it and adjust the handles.

The other drawing tools work the same way: Arc (A) draws a curved segment, and Freehand traces whatever your pointer does.

Recap

In the next chapter we make shapes look solid and realistic with gradient fills.

← Chapter 5: Saving and Exporting Chapter 7: Fills and Gradients →