Creating vector graphics using Inkscape
Splines are Everything
Vector graphics consist essentially of splines – a mathematical term. A spline denotes the shortest possible route between two imaginary points ("nodes") on a surface. You can thus already represent a simple body by spreading many points on a graph and connecting them with splines. Essentially, anything with square edges can be arranged this way. Vector graphics draw on "tangents" for displaying curves. In a vector graphic, a tangent is not a straight line without end, but a line segment. The length of a tangent to the left and right of a node determines the curvature of the corresponding spline.
You can put this theory into practice with a simple experiment: In the toolbar on the left, you will see the Bézier tool that you can use to draw straight lines and curves – you will see a pen with a straight line underneath it on the corresponding button (the lower of the two pencil icons). Click on the sheet of paper at any point and move straight downward using the mouse pointer, then double-click. You will now see a black line.
Next, move the mouse pointer down a bit and quite a bit to the left. Create a second line, but this time in the horizontal plane. Now click in the middle of the first line, move the mouse pointer to the center of the second line; click and hold down the mouse pointer. Drag the mouse pointer straight to the left, making sure the formerly straight line of nodes is now "bulbous." After releasing the mouse, move vertically and double-click to finish the curve (Figure 1). You have succeeded with the first milestone in using Inkscape: You can insert and edit any number of splines in the image later.

Forms
If you regularly work with vector graphics, then you will find out quickly which forms are very useful: They can be used often to make other graphic elements from them. In addition to circles and rectangles, Inkscape also provides some special cases, such as stars that appear on the document with a mouse click. You next convert the shape into a path via (Path | Object to Path and only edit the individual points of the generated form to customize their appearance. First, draw a circle using the circle tool. By holding down Ctrl when dragging the circle, you create a perfect circle.
With knowledge of splines, you can now imagine how Inkscape internally converts the circle: It uses four splines, which it turns into a circular shape with four segments using tangents. This is of great importance for making an apple out of the circle, for example. At the moment, you can only change the relationship of the segments to each other. Click the selection tool (the arrow) on one of the circle segments, hold down the mouse button and then drag the pointer to the outside of the circle's center; this creates a "bulge." However, an apple is much less uniform and has many small dents instead of a few big ones.
In simple terms, in the next step you therefore need to further divide the already existing segments. The more segments are available, the more accurately you can determine the appearance of the circle. That's why the next step is to add points to the existing path (the circle) using the path tool.
Splitting Up the Circle Segments
You will find the path tool – you can recognize it from the arrow tip located on a square – in the toolbar to the left directly below the selection tool. Enable it and click on the circle. You will now see small squares on the four connecting points of the circle segments. Select a single segment by clicking on the two squares enclosing it.
A function bar for paths will appear directly below the quick-start bar when enabling the path tool. The icon with the plus sign at the very left in this toolbar adds a point to the selected segment; it therefore divides the segment into two smaller segments. For logical reasons, Inkscape leaves this selected so that you simultaneously get several marks for a finer segment division. Furthermore, you can also select several circle segments at the same time by keeping the Shift key pressed when clicking on the squares of different segments.
No particular rule of thumb indicates how many points per segment are sensible. The more points you have, the more delicately you can work in those places. However, division that is too fine means you will have to edit many points to obtain visible effects. If you are editing a single segment – namely a spline – all other splines remain unaffected.
« Previous 1 2 3 4 Next »
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you've found an article to be beneficial.
News
-
The GNU Project Celebrates Its 40th Birthday
September 27 marks the 40th anniversary of the GNU Project, and it was celebrated with a hacker meeting in Biel/Bienne, Switzerland.
-
Linux Kernel Reducing Long-Term Support
LTS support for the Linux kernel is about to undergo some serious changes that will have a considerable impact on the future.
-
Fedora 39 Beta Now Available for Testing
For fans and users of Fedora Linux, the first beta of release 39 is now available, which is a minor upgrade but does include GNOME 45.
-
Fedora Linux 40 to Drop X11 for KDE Plasma
When Fedora 40 arrives in 2024, there will be a few big changes coming, especially for the KDE Plasma option.
-
Real-Time Ubuntu Available in AWS Marketplace
Anyone looking for a Linux distribution for real-time processing could do a whole lot worse than Real-Time Ubuntu.
-
KSMBD Finally Reaches a Stable State
For those who've been looking forward to the first release of KSMBD, after two years it's no longer considered experimental.
-
Nitrux 3.0.0 Has Been Released
The latest version of Nitrux brings plenty of innovation and fresh apps to the table.
-
Linux From Scratch 12.0 Now Available
If you're looking to roll your own Linux distribution, the latest version of Linux From Scratch is now available with plenty of updates.
-
Linux Kernel 6.5 Has Been Released
The newest Linux kernel, version 6.5, now includes initial support for two very exciting features.
-
UbuntuDDE 23.04 Now Available
A new version of the UbuntuDDE remix has finally arrived with all the updates from the Deepin desktop and everything that comes with the Ubuntu 23.04 base.