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
-
Canonical Bumps LTS Support to 12 years
If you're worried that your Ubuntu LTS release won't be supported long enough to last, Canonical has a surprise for you in the form of 12 years of security coverage.
-
Fedora 40 Beta Released Soon
With the official release of Fedora 40 coming in April, it's almost time to download the beta and see what's new.
-
New Pentesting Distribution to Compete with Kali Linux
SnoopGod is now available for your testing needs
-
Juno Computers Launches Another Linux Laptop
If you're looking for a powerhouse laptop that runs Ubuntu, the Juno Computers Neptune 17 v6 should be on your radar.
-
ZorinOS 17.1 Released, Includes Improved Windows App Support
If you need or desire to run Windows applications on Linux, there's one distribution intent on making that easier for you and its new release further improves that feature.
-
Linux Market Share Surpasses 4% for the First Time
Look out Windows and macOS, Linux is on the rise and has even topped ChromeOS to become the fourth most widely used OS around the globe.
-
KDE’s Plasma 6 Officially Available
KDE’s Plasma 6.0 "Megarelease" has happened, and it's brimming with new features, polish, and performance.
-
Latest Version of Tails Unleashed
Tails 6.0 is based on Debian 12 and includes GNOME 43.
-
KDE Announces New Slimbook V with Plenty of Power and KDE’s Plasma 6
If you're a fan of KDE Plasma, you'll be thrilled to hear they've announced a new Slimbook with an AMD CPU and the latest version of KDE Plasma desktop.
-
Monthly Sponsorship Includes Early Access to elementary OS 8
If you want to get a glimpse of what's in the pipeline for elementary OS 8, just set up a monthly sponsorship to help fund its continued existence.