You are on page 1of 27

H O W-TO

Written by Mark Crutch I n ks c a p e - P a rt 2 2


O ver the course of the previous
21 articles, I've introduced
the majority of the tools on
distinction, it's easy to become
confused about what the tool
actually does.
want to create a random cloud of
objects. For my example, I've
dialled down the randomness by
keyboard shortcuts, and take a
look at the tool control bar (shown
below).
Inkscape's main toolbar. There are using Extensions > Render > Grid…
a few, however, that have yet to be Objects: The Tweak Tool can be on a larger rectangle before The Width slider sets the size of
described. This is mainly because used to move, rotate and scale manually placing my objects. This is the tool, and is reflected by a circle
I've found them to be less than individual objects on the canvas. simply to make the sometimes around the cursor on the canvas.
useful to the work I do with subtle effects of the Tweak Tool This circle can be thought of as
Inkscape, but you may find them Nodes: When used on a path, stand out better. being like a soft brush in a bitmap
invaluable. As usual, the only way the tweak tool can be used to editor – the effect is strongest at
to know is to use them yourself, so, move nodes around, sculpting the the center, lessening gradually as
over the next few instalments, I'll path shape in ways that can be you move out towards the
do my best to give them a fair difficult to do with other tools. circumference. Large sizes allow
introduction, starting you to change many objects or
with the Tweak Tool Properties: The tool can be used nodes at once, though smaller sizes
(shown right). to change the color of objects and provide finer control. The Force
the amount of blur applied to slider allows you to set the
With the “T” keyboard shortcut them. strength of the tweaking effect.
already assigned to the Text Tool,
the recently added Tweak Tool has Before diving in to describe the It's possible to change the width
had to make do with “W” (or Shift- individual tweaks that the tool and force using keyboard
F2). It's purpose, as suggested by offers, we first need some objects shortcuts, even while drawing. The
the name, is not to draw or create to experiment on. Create a few Before using the Tweak Tool Left and Right arrow keys change
new objects, but rather to tweak small rectangles, circles or stars on you first have to select some the width, while Up and Down
existing ones. Its tweaks fall into the page in a fairly random objects for it to work on. Select change the force, and the Home
three separate modes: objects, arrangement. A quick way to do some of your cloud of objects, but and End keys move the width slider
nodes and properties. The user this is to draw one, then drag it leave a few unselected (or deselect to its extremities. If you're using a
interface doesn't really distinguish around whilst “stamping” it onto them with a Shift-click afterwards). pressure-sensitive graphics tablet,
between them, but without the canvas using the Space bar. Now switch to the Tweak Tool significant control of the force can
understanding this hidden Whatever approach you take, you using the toolbar icon or one of the be achieved by enabling the button

full circle magazine #82 21 contents ^


HOWTO - INKSCAPE Pt22
to the right of the slider, allowing If you move the cursor slowly, or right shows the effect with the selectivity. For this example I chose
you to control the strength of the have the force set high, you can use Shift key held. a small width, then wandered
force parameter with pen pressure. this mode to push objects around around my selected objects
indefinitely. By quickly swiping The third tweak tool moves the pressing and releasing Shift in
The Mode section contains over objects with the force set low, selected objects randomly – that is, order to shrink some, grow others,
buttons to select the specific type you impart just a small nudge to by a random amount in a random and leave the unselected objects at
of tweaking operation you wish to their positions with each pass. direction. The maximum distance is their original size.
perform. These are radio buttons – constrained by the force setting.
only one can be selected at a time. The second radio button This tool can be used with a large
The first six buttons affect objects, invokes a different move mode. In width brush to affect many objects
the next four affect nodes, and the this case the objects are moved at once, but can also be used to
last three change properties. The towards the cursor, or away from more subtle effect with a small
Fidelity field seems to apply only to the cursor if the Shift key is held. width to introduce just a little
the node editing tweaks, despite This is best demonstrated using a randomness into the positions of a
remaining enabled when the object very large width setting, so that all few of the selected objects.
tweaks are selected. The Channels the selected objects are within the
radio buttons apply to the two tool's brush area. By slightly The fourth tool shrinks objects,
color-related property tweaks, and moving the cursor at the middle of or grows them if you hold Shift.
remain disabled for all others. the grid, you can see that the Again, a large width can be used to
selected objects have all moved shrink or grow several objects at
Starting from the left, the first towards the center (see image once, while a smaller brush allows The last of the object-related
of the object tweaks simply moves below left), while the image below you to modify things with more tweaks changes the rotation of
the selected objects around when your selected objects. The default
they're touched by the tool. is to rotate them clockwise, but as
Selecting a few of the test objects you may have guessed you can hold
and randomly scribbling around Shift to rotate them anti-clockwise
with the tool results in something instead. The Force parameter sets
like this: the speed at which the objects will
be rotated, though there's no
mechanism to constrain the
amount to ensure just a little
variation, nor to rotate by a
random amount to produce more
radical results in a single swipe.

full circle magazine #82 22 contents ^


HOWTO - INKSCAPE Pt22
be described in more detail in be used to change the fill color and O, which correspond to Hue,
future articles. without modifying the stroke. Saturation, Lightness and Opacity
When used on objects that have respectively. If you want to
I'm going to skip over the node only a stroke, it can be used to randomise the opacity of your
tweaking tools and return to them change the stroke without objects while keeping their colors
next time. I'm jumping straight to modifying the fill. But if your intact, for example, you should
the three property tweaks because objects have both, be very careful disable all but the O button before
these are applied to selected when using this tweak unless you painting with the tool.
objects rather than nodes, so I can want one or the other to tend
continue to use the same example towards blackness. The last tweak changes the blur
image to demonstrate their use. of the selected objects, increasing
With that warning out of the it as you swipe over them, or
The last of the object tweaking The first of these tweaks is the way, using the tool is as simple as decreasing it when the Shift key is
tools is, in my opinion, one to eleventh mode button on the selecting the mode button, picking held. This is best used with a small
avoid. It duplicates the selected toolbar. Its tooltip claims that it a target color, then painting over value for the Force parameter,
objects as you draw over them, or “Paints the tool's color upon the selected objects. They will otherwise it's easy to blur objects
deletes them when Shift is held. selected objects”, but in my incrementally change towards the so quickly that they virtually
Unfortunately, each duplicate is experience it's a little buggy (at selected color, with the speed of disappear into a puff of smoke – or
placed perfectly on top of the least on my 0.48.4 installation). The the change being determined by rather into a slight smudge that's
original, so if your original object is tool's color can be found at the top the tool's force setting. If you hold barely visible on the screen.
opaque it's impossible to see how right of the tool control bar, to the the Shift button, the inverse of the
many duplicates have been right of the “Channels” buttons. In selected color will be used as the The image on the following
created. It's too easy to theory, it should be possible to set target. This also applies to the page shows all three of the
accidentally create many hundreds the fill and stroke for the tweak errant black fill or stroke, which will property tweaks applied to the test
of objects with this mode, tool while the color button is become a white target instead. image. The target color for the first
especially if the force parameter is active, either using the palette at test was bright green, resulting in
large. If you want to create a small the bottom of the screen, or the The penultimate button also bright pink for the inverse color.
number of duplicates then Edit > Fill and Stroke dialog. In practice affects the color of the selected Compare this “directed” change of
Duplicate (Ctrl-D) is a better however, it's possible to set a fill objects, but does so by randomly color with the more random
option. For lots of duplicates, color, but doing so will set the jittering the color values by a small selection in the second image. The
Inkscape's “Create Tiled Clones…” stroke to black. Setting the stroke amount. As you might expect, the third example shows different
dialog is a better option. Even the to a color will set the fill to “None”, maximum size of this amount is set levels of blur as the result of
deletion mode of this tweak is which has the same effect as by the tool's Force. For both these setting a small Force value and
equally well served by the Eraser having it set to black when you color-changing tweaks, you can drawing repeatedly over several of
tool. Clones and the Eraser tool will actually use the tool. When used on further limit the effect using the the objects.
objects that have only a fill, it can Channels buttons, labelled H, S, L
full circle magazine #82 23 contents ^
HOWTO - INKSCAPE Pt22
Between the “objects” and
“properties” modes, the tweak tool
offers a wide range of ways to add
a little variation to otherwise
homogeneous collections of
shapes. Unfortunately it's not The Ubuntu Podcast covers all
possible to combine multiple the latest news and issues facing
tweaks at the same time in order Ubuntu Linux users and Free
to move, rotate, shrink, color and Software fans in general. The
blur some objects all in a single show appeals to the newest user
operation. Being able to do so and the oldest coder. Our
would make more sense of the discussions cover the
duplicate mode – consider development of Ubuntu but
duplicating and randomising the aren’t overly technical. We are
position at the same time – but the lucky enough to have some great
tool offers no such facility, guests on the show, telling us
somewhat neutering its object first hand about the latest
manipulating abilities. Where the exciting developments they are
tweak tool is perhaps at its most working on, in a way that we can
useful, however, is in dealing with Mark's Inkscape created webcomic, all understand! We also talk
nodes in a path, which will be the 'Monsters, Inked' is now available to about the Ubuntu community
buy as a book from
subject of the next part of the http://www.peppertop.com/shop/ and what it gets up to.
series.
The show is presented by
members of the UK’s Ubuntu
Linux community. Because it is
covered by the Ubuntu Code of
Conduct it is suitable for all.

The show is broadcast live every


fortnight on a Tuesday evening
(British time) and is available for
download the following day.

podcast.ubuntu-uk.org
full circle magazine #82 24 contents ^
H O W-TO
Written by Mark Crutch I n ks c a p e - P a rt 2 3
P reviously we looked at using
Inkscape's Tweak Tool to
change objects and properties. This
are curved.
• If it's used on an object, such as a
circle or rectangle, that object will
you want to change – they're all
fair game for tweaking. Actually,
you'll often find that the
middle then, as the tool passed
over the boundary of the shape,
the right side was pushed further
time we'll take a look at its be converted to a path. connected nature of nodes means out. Essentially the path is
arguably more useful ability to that changes will be made to the distorted in the direction that the
modify paths. The path tweaks are So our example really needs to shape of your path that extend far tool is moved, and this tweak
affected by the Width and Force be a closed, curvy path with more beyond what the Width parameter actually feels a lot like pushing
sliders that were described last than two nodes. A quick option is would imply. watercolor paint around on a page
time, and are chosen by selecting to use the Star tool with the by blowing through a drinking
one of the four buttons that I've Roundness parameter turned up a With our rounded star selected, straw. The amount of distortion
outlined with a red box in the tool little to produce a rounded star and the “Push” tweak enabled, let's depends not only on the Width and
control bar image shown below. which will be turned into a path make a couple of steady sweeps of Force parameters, but also on the
when we start to tweak it. the tool from left to right. speed at which you move the tool.
Because these tweaks modify If you move it slowly enough you
the nodes in a path, our previous can even cut an object into
array of objects won't make for a separate pieces.
particularly useful example.
Instead we need to create a new At this point it's worth
path or object to work on. There introducing the Fidelity parameter,
are some rules, though, which over on the right of the tool
practically limit what we will draw control bar. This controls the
as an example path: number of nodes that are created
• The tweak tool works on only as you tweak. Manually converting
closed paths. If it's used on an open this rounded star to a path results
path, it will be turned into a closed in 1 0 nodes. The example above
one. As usual with the Tweak Tool, It's pretty clear what has had the Fidelity set to 1 0, and
• It doesn't work well on straight you have to select the objects you happened: parts of the path have resulted in the final path having 41
paths or path segments. wish to work on before switching been pushed away from the tool as nodes. Increasing Fidelity to 50 and
• It doesn't work well on paths with to the tool. You don't, however, it moved across the shape. First the re-tweaking the original gave 59
only two nodes, even if those paths have to select the individual nodes left side was pushed into the nodes, while a fidelity of 80 gave

full circle magazine #83 26 contents ^


HOWTO - INKSCAPE Pt23
over 1 50 nodes. Increasing the of the tool; with Shift, the path is have to manually create a number
Fidelity to 1 00 created many instead repelled away from the of nodes beforehand, otherwise
thousands of nodes, and slowed center of the tool. your jittering will be rather
my computer down to a crawl. I ineffective.
recommend keeping this value to This is useful for sculpting the
50 or below – the accuracy created shape of a path. By moving the tool Before we can even think about
by the extra nodes is rarely worth around the outside of the path, you creating new nodes, we need to
the trade-off, in my experience. can pull it outwards – making it ensure that our object is a path. In
bigger. Moving it around the inside the case of our example star, it's
The next button on the tool of the path, on the other hand, not. That's not a problem as we've
control bar is the Shrink/Grow pulls it inwards – making it smaller. I suppose the Roughen tweak is converted plenty of shapes to
mode. This doesn't take its Holding Shift simply reverses the living up to its name in this case. paths in the past, so it should be a
directional cue from the movement direction of the pull. Try using this The path certainly looks rougher in familiar operation by now: just
of the tool, but instead it will to shave away part of an object, or parts. But because the effect is select the object and use Path >
always move nodes in towards the to make it gently bulge outwards. If stronger towards the center of the Object to Path (Shift-Ctrl-C). Now
center of the path – or outwards, you go too far in one direction tool, the roughness hasn't been we've got a star-shaped path made
away from the center, if the Shift either hold Shift, or move the applied evenly around the path. up of 1 0 nodes, but if we try to
key is held. This example used cursor from outside the shape to Trying to draw the tool over the jitter those few nodes, all we'll
Shrink for the top half of the star, inside, or vice versa. outline in an effort to spread the succeed in doing is slightly
and Grow for the bottom half. effect just results in it cancelling distorting the shape.
The final tweak promises so itself out again, producing a less
much, but delivers so little. In rough result. To make matters By switching to the Node tool
theory the Roughen tweak should worse, the rough areas now have (F2), our 1 0 nodes become visible.
introduce some randomness and huge numbers of nodes – this Next we have to select them all by
chaos into the shape of your path. example resulted in our 1 0 node pressing Ctrl-A or using Edit >
What actually happens is that the star growing to almost 2,000 Select All. Press the Insert key on
randomness largely cancels itself nodes! the keyboard and a new node will
out, leaving you with a lot of extra be created between each pair of
nodes that haven't moved very far. If you do want to randomise a selected nodes. Now we have 20
The best results seem to come path, a better option is usually to nodes, which is better, but still not
from using a large value for Width be found in the “Jitter Nodes…” enough. Fortunately the newly
in order to smother as much of the extension. This requires a little created nodes have automatically
The penultimate node tweak is path as you can with the tool. Even preparatory work because it just been added to our selection, so all
Attract/Repel. In its normal mode, with both the Width and the Force moves nodes and their handles, we have to do is press Insert again,
the path is distorted as though it's at their maxima, I was still able to rather than creating them. You and again, and again. 20 nodes
being attracted towards the center produce only this: becomes 40, then 80, and so on. I
full circle magazine #83 27 contents ^
HOWTO - INKSCAPE Pt23
stopped at 1 60 because this gave Modify Path > Jitter Nodes… Once The next two controls it's probably a lot closer to the
me a fairly dense arrangement of the dialog opens, the first thing to determine whether the positions result you were looking for.
nodes for jittering, without asking do – and this is the case with many of the nodes or their handles will
Inkscape to deal with excessive of Inskcape's extensions – is to be shifted. Shifting the nodes gives As I mentioned last time, I rarely
numbers. check the “Live preview” checkbox a more distorted line; shifting the make use of the tweak tool. I find it
at the bottom. This will allow you handles produces more spikes and too difficult to control accurately,
to modify the controls in the dialog sharp transitions; choosing both with the effects often being far too
and see the results applied to the will give you a more distorted line subtle or far too strong. Using a
canvas prior to committing them that also has spikes and sharp pressure sensitive graphics tablet
with the Apply button. angles. The last control simply can certainly help, as it's easier to
determines how the random shifts dynamically modify the Force as
The rest of the controls are are selected. If this is checked they you work, but often – as in the case
fairly simple. The first two will follow the “bell curve” shape of of the Roughen example – you can
spinboxes are used to set the a normal distribution, meaning that get better results using other
amount that each node or handle small shifts are more likely than methods.
can be shifted in the X and Y large shifts. In theory this can give
directions. Usually you would want a more natural appearance, but in
You need to switch back to the to set these to the same value, but practice the difference isn't really
Select tool (F1 ) and ensure your there are occasions when you want noticeable in many cases.
path is selected before launching more movement in one direction
the Jitter Nodes extension using than the other. For example, So what of our rounded star,
the menu entry: Extensions > creating a line with lots of nodes, now that we've converted it to a
then jittering them in only one path, added nodes and jittered it?
direction, is a quick and easy way to Well it's certainly different to the
make a fake line graph. result of the Roughen tweak, but

Mark's Inkscape created webcomic,


'Monsters, Inked' is now available to
buy as a book from
http://www.peppertop.com/shop/

full circle magazine #83 28 contents ^


H O W-TO
Written by Mark Crutch I n ks c a p e - P a rt 2 4
N ext in my collection of
“Inkscape tools I rarely use” is
the zoom tool, or magnifying glass.
from 1 00% follows a sequence of
1 00% > 1 41 % > 200% > 283% >
400% > 566% > 800% and so on.
At this point some of you may be With this value zooming in twice combined zoom and pan in one The icon theme used on my
wondering how I manage to use approximately doubles the operation. Linux Mint box mixes the styles of
Inkscape without using the zoom percentage zoom factor, but you the icons somewhat – on other
tool, but the truth is that the can change the preference to That's it for the zoom tool. Two systems the first three buttons are
program offers so many other ways something else if you wish. ways to zoom in (click, or click- often styled as magnifying glasses
to zoom that, although I'm drag) and one way to zoom out in the same way as the remaining
constantly zooming in and out, I (Shift-click). Admittedly there are images. Regardless of the icons
never actually use the tool that's some buttons on the tool control used, the functionality remains the
dedicated to the task. Let's look at bar, but they don't actually have same. Dealing with each button
what the tool can do first, before any effect on the zoom tool itself. from left to right – or top to
examining other ways to zoom that Instead they just provide a few bottom if you're looking at the
may mean you never use it again. useful zoom levels that are also View > Zoom menu – the functions
available via the View > Zoom are as shown in the table below:
You can activate the menu, even when you haven't got
zoom tool by clicking on the zoom tool selected. The Zoom In and Zoom Out
the icon in the tool options are fairly self-explanatory:
palette, or by pressing either of
two keyboard shortcuts: F3 or Z.
Once active you can zoom in simply
by clicking within the drawing area. Alternatively – and this is
To zoom back out again, hold Shift probably the best way to use the
while you click. The amount by zoom tool – you can click and drag
which you zoom in or out is fixed as to define the area you want to
a percentage in the Steps pane of zoom into. Inkscape's view will be
the application preferences (File > adjusted so that the rectangle
Inkscape Preferences). By default, you've dragged is fully enclosed in
it is set to 1 41 %, although Inkscape the window. By dragging towards
does round the actual zoom the edge of the drawing area this
amount a little so that zooming up feature therefore works as a
full circle magazine #84 25 contents ^
HOWTO - INKSCAPE
they're the same as clicking or although both the rectangle and
Shift-clicking with the zoom tool, shadow can be turned off in the
except that they are centered Border section of the Document
around the middle of the visible Properties dialog, if you prefer.
part of the canvas, rather than
around the mouse pointer. Inkscape keeps track of each
zoom level you change to, and the
Zoom 1 :1 might initially suggest last two commands let you cycle
zooming to 1 00%, but that's not back and forth through this history.
the case. What it actually does is The keyboard shortcuts use the
zoom so that Inkscape's internal backtick key, which isn't commonly
pixel size is represented by a single used by most people – if you have
pixel on the screen – so something trouble finding it, it's usually at the
drawn as 300px wide will actually different screen. top left, just before the number
take up 300 pixels on the monitor. keys.
This can be used so that objects The Selection, Drawing and
drawn using real-world units, like Page options are also permanent It's worth noting that all these
millimetres and inches, will appear features of the “commands” keyboard shortcuts are global: you
at the correct size on the screen. toolbar, so, assuming you have that don't have to use the zoom tool for
For it to work, however, you need visible, there are three more them to work. So not only can you
to calibrate Inkscape to your reasons why you may not need the access all these zoom options from
screen using the File > Inkscape zoom tool. Zooming to the current the View menu at any time, but
Preferences > Interface pane. Find selection is clear enough, but also just by pressing a few keys.
a small ruler and set the units pop- what's the difference between
up to match. Then hold the ruler to Drawing and Page? Drawing refers But that's not all! There are yet
the screen and adjust the slider to the extent of all the objects more zooming shortcuts that really
until the on-screen measurements you've drawn. It could be smaller make the zoom tool redundant if
match the graduations on the ruler. than the page size, or bigger if you can remember them.
It's a fiddly process, but usually you've created or dragged any
only needs to be done once. Be shapes beyond the page's The tool lets you zoom in by
aware, though, that it just boundary. Page is the area that's clicking somewhere in your
calibrates Inkscape to that one defined in File > Document drawing, but you can achieve the
monitor – if you replace it, or have Properties, and is usually displayed same effect without switching
a multi-monitor setup you will need as a rectangle with a drop shadow tools just by clicking with the
to go through the process again in the background of the canvas – middle mouse button or scroll
when you use Inkscape on a wheel. Zooming out, as you may
full circle magazine #84 26 contents ^
HOWTO - INKSCAPE
guess, is achieved by Shift-clicking quickly. selected, it behaves similarly to the Keeping track of the specific
the middle mouse button or wheel. Selection zoom described above, in zoom level isn't usually an issue, as
And how about the zoom tool's If you've come to Inkscape from that the canvas will be zoomed and you can orient yourself by the
one useful ability: dragging a some other vector graphics panned to ensure that the selected objects in your drawing. If you do
rectangle to define a zoom area? program, you may be used to the objects fill the screen. Pressing, want to see the value, though, the
Just hold shift and then click-drag wheel controlling zoom without then releasing, the Q key is right hand side of the status bar
with the middle mouse button any additional keyboard modifiers. therefore similar to pressing “3” holds a zoom spinbox (originally
instead. If you prefer this way of working, followed by the backtick. introduced in part three of this
you can change Inkscape's series). You can focus it by pressing
As you can see, there's not a behaviour via the Scrolling pane of A quirk of Inkscape's input Alt-Z, then type in a zoom level or
single function of the zoom tool the Inkscape Preferences dialog. focusing code affords the Quick use the context menu to choose a
that isn't also available globally Check the “Mouse wheel zooms by Zoom shortcut another little few sensible defaults – including
when you're using other tools. default” option to enable this feature. Press and hold Q to zoom yet another way to select Page,
Switching back and forth between mode, which also has the side in, then move the mouse outside Drawing or Selection. I suppose
tools slows down the drawing effect of mapping Ctrl-wheel to the canvas area, onto a toolbar or that might be useful if you've
process, so by learning some of panning the canvas up and down. even outside the window entirely. hidden the “commands” toolbar,
these shortcuts you'll change tools Releasing the Q key now will leave can't remember the keyboard
less, and speed up your work. The last zoom shortcut is the Q Inkscape “stuck” at that zoom level shortcuts, don't want to switch to
key, which activates Quick Zoom even when you move the mouse the zoom tool and can't find the
There are two more zoom mode. It's quick because the back in. Essentially the canvas is View menu because your Ubuntu
shortcuts that are well worth zooming is only temporary: when waiting to receive a message that Unity or MacOS interface has
remembering. I introduced the first the key is released Inkscape will go the Q key has been released, but moved it way up to the top left of
one way back in part two of this back to the previous zoom level. it's a message that's already been the screen while your mouse is at
series, but it bears repeating once It's particularly useful for making sent and lost to another part of the the bottom right.
more. It's the way that I usually minor changes to an object, or interface. You can now make your
zoom in and out, and I've always having a close-up look at it without edits without the difficulty of
found it to be the fastest and most losing your current context. With holding the Q key down at the
convenient option if you're using a no objects selected pressing Q will same time. And when you're done?
mouse with a wheel. Just hold double the current zoom level, Just press and release the Q key I'll round off this article with the
down the Ctrl key and roll the centered around the middle of the within the canvas area once again. last zoom related feature in
mouse wheel to make Inkscape visible canvas area. Pressing and It won't zoom in, as the program Inkscape that I know of. By default,
zoom in and out, centered on the releasing this shortcut is like still thinks the key is already resizing the Inkscape window
mouse position. When coupled pressing the “+” key twice to pressed, but it will finally receive doesn't affect the zoom, it just
with a click-drag of the wheel to double the zoom, followed by the the release message it's been reveals or hides more of the canvas
pan the canvas you can move backtick key twice to revert to the waiting for, and put you back to area. But there's a small toggle
around your drawing extremely previous zoom level. With objects your previous zoom level.
full circle magazine #84 27 contents ^
HOWTO - INKSCAPE
button just above the vertical scroll Inkscape is so replete with
bar that can be used to change this
behaviour. Toggling it on will cause
shortcuts, icons and menus for
zooming that you may never need
PYTHON SPECIAL EDITIONS:
a change of the zoom value when the Zoom Tool again. But if you
the window is resized, so that it struggle to remember keyboard
still shows the same content but at shortcuts or menu locations, then it
a larger or smaller scale. It uses the does at least provide a visual
same icon as the 1 :1 zoom button, grouping of most of the main zoom
looking like this on my Mint options, so go ahead and use it if
system: you prefer. If there's one thing the
Inkscape developers offer in
abundance it's choice, so go ahead
and choose the approach that's http://fullcirclemagazine.org/issue-py01 / http://fullcirclemagazine.org/issue-py02/
best for you.

http://fullcirclemagazine.org/python- http://fullcirclemagazine.org/python-
If you prefer the behaviour special-edition-issue-three/ special-edition-volume-four/
when it's on – the zoom changing
as the window is resized – you can
set it as the default in the Windows
pane of the Inkscape Preferences
dialog. The option is towards the
bottom of the pane, and is labelled
as “Zoom when window is resized”.
Regardless of the default value, Mark's Inkscape created webcomic,
you can still use the toggle button 'Monsters, Inked' is now available to
to change it on a per-window basis buy as a book from http://fullcirclemagazine.org/python- http://fullcirclemagazine.org/python-
if you want to. http://www.peppertop.com/shop/ special-edition-volume-five/ special-edition-volume-six/

full circle magazine #84 28 contents ^


H O W-TO
Written by Mark Crutch I n ks c a p e - P a rt 2 4
I n this article I'll be looking at
Inkscape's 3D Box tool. The first
thing to note about the 3D Box
tool before, it's easy to create a
box that's too big or too distorted,
making it hard to understand the
construction lines which project
from the edges along the X, Y and
Z axes of the 3D world; there are
tool is that it doesn't create 3D tool. So before you start to draw, eight small handles, one at each
boxes. What it actually does is let's set some sensible defaults on corner of the cuboid (one will
draw and manipulate six closed the tool control bar. appear to be in the middle of the
paths to produce a 2D box – it's just the handle for the
representation of a 3D box – The options for this tool are obscured corner showing through);
Inkscape is, after all, only a 2D deceptively simple – but that's only there's a small X-shaped handle at
drawing program, not a 3D solid because a lot of the complexity the center; finally, the box is
CAD application. This is also the takes place via handles on the probably made up of shades of
only fake-3D drawing primitive that canvas instead. There are three blue.
Inkscape offers, so, if you want 3D pairs of controls, consisting of a
shapes other than boxes, you're on spinbox and a button for each of Because we've set the axes to
your own. With those limitations in the X, Y and Z axes of the pseudo- have an infinite vanishing point,
mind, let's take a closer look to see3D world that your box will live in. the projection lines form parallel
how the 3D box tool works, and Start by clicking all three buttons There are a few things to note pairs. The angle of each axis is
how you can use it as the basis for into their “on” state. This sets an about the box you've drawn: there measured in degrees, in an anti-
more complex representations of infinite vanishing point for each are red, blue and yellow clockwise direction where 0° points
3D objects. axis, ensuring that the edges of
your box are all parallel. Enter
You can activate the values of 1 50, 90 and 30 into the
3D Box tool using the icon spinboxes – as usual there are
on the toolbar, or by context menus with some sensible
pressing X or Shift-F4. The normal options, though 1 50 isn't one of
2D rectangle tool can be activated the defaults. Now click and drag on
by pressing F4, so you might like to the canvas to draw your first 3D
think of this tool as drawing a box. Make it fairly large so that it's
rectangle that's been shifted into easy to distinguish the small
the third dimension. Depending on handles on the box when you
where you draw, and how much release the mouse button.
you've tinkered with the 3D Box
full circle magazine #85 21 contents ^
HOWTO - INKSCAPE
to the right. Compare the angles than using the Selector tool – it a normal group of paths, but
you typed in earlier with the doesn't make a lot of difference for they're just a group of paths
projection lines – by using 30° for these projections, because all the nevertheless. That's why all six
the Y-axis, and 1 50° for the X-axis axes have infinite vanishing points, sides take on the same fill when
(calculated as 1 80° minus 30°), your but once we turn off one of those you click on a color swatch –
boxes form a classic isometric toggle buttons the behaviour of they're just behaving the same way
projection. Try setting the X angle the two methods diverges that any group of paths does in
to 1 80° for a Cavalier projection, or significantly. that situation.
set X=1 35° and Y=45° for an
Oblique projection. With the projection lines and The key to changing the color is
handles dealt with, it's time to talk therefore to enter the group and
The square handles are used to about color. The default behaviour modify each path individually.
adjust the size of your box. Four of for the 3D Box tool is to draw your Whilst double-clicking with the
them can be used to modify two boxes in shades of blue. You can try Select tool usually enters a group,
dimensions (X and Z) at once, setting the fill color before you in this case it just switches to the
whilst the other four let you draw, but you'll still get shades of 3D Box tool, so instead you need to
change only the third dimension blue. And if you set the fill color right-click and select “Enter Group
(the depth along the Y-axis). afterwards – well, you'll get the #g31 1 6” from the bottom of the
Holding Shift will toggle the color you chose, but not as shades. context menu (the exact title will While inside the group you can
handles, so that a handle which Rather, all six faces of your box will vary based on the ID of the group). also change the color of each face
usually controls the Y dimension be set to the same fill color and Alternatively you can click on the individually – or even delete some
instead lets you change X and Z – you'll end up with something that box using the Selector tool, then of the faces entirely. Once you're
and vice versa. When moving an looks more like a flat, distorted press Ctrl-Enter, or Ctrl-Click to done, exit the group by double-
X/Z handle, try dragging it a little hexagon than a 3D box. select one of the visible faces clicking on the canvas background
way along one of the projection without actually entering the with the Selector tool, picking “Go
lines, then holding Ctrl. This The secret to coloring your box group. to parent” from the context menu,
constrains the movement to one is to understand what it's made of. or using the Layers pop-up in the
direction only, should you wish to The SVG format doesn't allow for Once you've entered the group, status bar. You may be surprised to
change the X dimension without 3D primitives, and certainly doesn't I suggest starting by moving the find that Inkscape still considers
altering the height, for example. know anything about 3D boxes. faces apart from each other. This your object to be a 3D box even if
The X-shaped handle can be What Inkscape creates is actually will give you a better idea of how it's exploded, a different color, or
used to move the whole box, and an illusion, made up of six paths the box is constructed. Use Shift with faces missing. This can be
once again Ctrl can be pressed to that are grouped together. These with the arrow keys to move by a useful when you want a box with
constrain the movement to one paths carry some Inkscape-specific precise amount, if you want to be no lid, or you just want to give each
axis. Usually it's best to move 3D attributes so that the program able to move the faces back to face a stroke but no fill to create a
boxes using this handle, rather knows to treat them differently to reconstruct the box later. simple wireframe.
full circle magazine #85 22 contents ^
HOWTO - INKSCAPE
appearance of looking down a
corridor. You may need to adjust
the corner handles for the best
effect.

The projections we've used so


far are okay for certain types of Returning to a single box, let's duplicate it (Ctrl-D) and move the
technical drawings or 3D pixel art, try some 2-point perspective. Draw duplicates to the right along the
but the 3D Box tool can also create a new box if you need to, but this projection lines (hold Ctrl while
images with perspective. Let's start time, toggle the parallel lines dragging the X-handle). Duplicate
with a simple 1 -point perspective. buttons for both the X-axis and the again and move up, along the Y-
Z-axis. Leave the Y-axis with an axis (start moving up, then press
We'll begin by removing the infinite VP at an angle of 90°. and hold Ctrl). Very quickly you can
With the 3D Box tool still build up a wall of boxes in this way
front left face of our box (medium selected try drawing some more Now both the red and yellow
blue, with the default colors). You boxes. Notice that they all share projection lines converge into or, as I did in a recent comic strip,
should now be able to see into the the same VP. By moving them using square handles at the VPs. Drag leave a few gaps to create a 3D
box to the pale back wall. Set your the X-shaped handle they will the handles around – for a good “pixel” image.
X-axis angle to 1 80°, as we did for continue to share their VP, but if effect put the red one a little
the Cavalier projection, but this As you may have guessed, you
you move a box using the Selector above the box and far to the left, can also turn off the parallel
time click on the parallel lines tool, the VP will also be moved, and the yellow one at a similar
button for the Z-axis so it's button on the Y-axis to give you 3-
breaking the link between that box height, but far to the right. Now point perspective. This is not as
deactivated, to give the Z-axis a and any others. drag the box around by the X-
vanishing point. You'll notice that handle, and note what happens as frequently used as the previous
the Z-axis angle is no longer options, but can be great if you
Using this shared VP behaviour, it moves above the VPs, or close to want to draw huge, imposing
editable, and instead the two it's easy to create a few boxes with either of them (hold Shift to move
yellow projection lines now it along the Z-axis). towers and monoliths.
1 -point perspective to form the
converge to a square handle on the basis of a street view. You'll need
canvas. That's the vanishing point Once again, any other boxes you If you do move a box using the
to adjust the corner handles for Selector tool, you may wish to
(VP) – try dragging it around to see each box, but remember to hold draw will share the same vanishing
the effect. Put it somewhere near Shift if they won't move in the right points. Try starting with a small box reconnect it to the VPs of your
the center of your box to give the near the red VP, then repeatedly other boxes. Simply Shift-click on
direction.
full circle magazine #85 23 contents ^
HOWTO - INKSCAPE
But by setting a stroke with no fill
(and you don't even need to enter
the group to do that), you can
PYTHON SPECIAL EDITIONS:
create a wireframe box that makes
it much easier to draw in
perspective. So don't think of it as a
tool for drawing boxes, think of it
as a tool for drawing construction
lines. Once you've got the basic
frames for your street, wall or
multiple boxes when the 3D Box tower, the rest is down to your
tool is active and you'll be able to imagination.
see all the VP handles at once. http://fullcirclemagazine.org/issue-py01 / http://fullcirclemagazine.org/issue-py02/
Drag the handle from one box onto
the handle of another to snap
them together. Be warned, this
operation pays no heed to the
color of the handles you're
connecting, so you can easily end
up joining the X-axis of one box to
the Z-axis of another. Quite what
the result will be in any artistic or
mathematical sense, I don't know – http://fullcirclemagazine.org/python- http://fullcirclemagazine.org/python-
but feel free to experiment if you special-edition-issue-three/ special-edition-volume-four/
really want to. If you decide that
you need to separate any joined
VPs, then ensure that only one box
is selected and hold Shift as you
drag the VPs around. Alternatively,
use the Selector tool to move the
whole box.
The 3D Box tool may seem quite Mark's Inkscape created webcomic,
'Monsters, Inked' is now available to
specific and even restricted in what buy as a book from http://fullcirclemagazine.org/python- http://fullcirclemagazine.org/python-
it can do, and if you take it on face http://www.peppertop.com/shop/ special-edition-volume-five/ special-edition-volume-six/
value then that's probably true.
full circle magazine #85 24 contents ^
H O W-TO
Written by Mark Crutch I n ks c a p e - P a rt 2 4
I nkscape's Spray tool is the vector
graphics equivalent of similar
tools from the bitmap world. It's
used to create semi-random need an object to spray. I've used a that each leaf created by the Spray
arrangements of objects but unlike simple leaf design for this example, tool is an independent object that
the bitmap version, each object can made up of some paths grouped can be further manipulated. Don't
then be manipulated individually together. Next, you need to select like the position of one of the
like any other vector element. This your object using the select tool leaves? Move or delete it. If the
makes it particularly good for before switching to the Spray tool. size is wrong, scale it using the
quickly filling large areas with With the first “Mode” button Select tool. Rotate it, change the
similar items – think of a snow selected, and all the sliders at their fill and stroke colors, move it up or
flurry, or a path covered in autumn default values, move the cursor down in the Z-index, or group it
leaves – but it can also be into the canvas area, press and with a few neighbours. All the
invaluable on a smaller scale for hold the left mouse button, and Spray tool has done is the same job
textured outlines and shapes. move the mouse around. Copies of you could have completed by guessed that I would get all three
your object should be sprayed onto copying the original object then leaves sprayed onto the canvas,
The Spray tool is the screen with random scale and pasting it multiple times, with but look at their relative positions
activated by clicking on rotation, which in my case some simple adjustments to each and rotations: each of them is
the toolbox icon or by produces a pile of leaves (with the one. sprayed independently of the
pressing either the “A” key or original leaf on the left). others. The original trilogy forms a
SHIFT-F3. As usual, the tool control If the Spray tool is just a fancy line with all the stalks pointing in
bar lets you modify the behaviour way of doing a quick copy and the same direction, but the sprayed
of the tool using buttons and paste job, what happens when you result doesn't preserve that
sliders, the latter with right-click have more than one object relationship between the items. In
context menus that expose a selected? In this example I've this case that's exactly what I want
sensible range of values and, manually made two copies of the – my leafy background wouldn't
perhaps more importantly, label leaf design and changed the colors. look quite the same if it was made
the default values so you can Then I've selected all three and up entirely of regimented triplets –
quickly get back to something switched to the Spray tool, using but if you do want that effect you
sensible. the same parameters as before. have only to group your original
objects first. That way the Spray
To use the spray tool you first The important thing to note is You could probably have tool is dealing with only a single

full circle magazine #86 25 contents ^


HOWTO - INKSCAPE
(compound) object, rather than even enter the group and tweak can be invaluable when your pile of Having discussed the Mode
three separate ones. the paths to change the leaf shape, leaves grows large enough to buttons, it's time to move on to the
with all your modifications obscure the originals. remaining controls on the tool
Now that you've got the basics immediately reflected in the control bar. With the exception of
of the tool, let's look at the sprayed versions. The third Mode button works one misplaced button, these are all
controls that are available and the only when the object you're sliders which run up to 1 00 and
effect that each of them has. When to create clones and spraying is a single path. Instead of down to 1 or 0, depending on the
Starting at the left, the Mode when to create copies is sometimes creating separate objects or clones, control.
buttons are arguably the most hard to judge. As a general rule of it adds each sprayed item as part of
important as they dictate the way thumb, though, it's usually safer to a single complex path. In this The first slider, Width, simply
in which your final result is actually create clones as they can image, the red stars have been alters the size of the spray area.
structured – whether you'll end up subsequently be converted into created as clones of the original, This value is reflected in the size of
with real objects, clones, or a single real copies by selecting them and whereas the green stars have been the orange circle that surrounds
complex path. then using the Edit > Clone > Unlink created using this “Path” mode. As the cursor when it's in the canvas
Clone menu entry, whereas you you can see, the areas where area. You can think of this circle as
One of those words, “Clones”, is can't convert in the opposite sprayed objects overlap differs containing all the possible
a new one in this series, and it's a direction. In that same menu, the considerably, and in Path mode the locations that could be used to
subject that I'll be covering in a lot Select Original item will select the end result is a single path which place the center of the sprayed
more depth in future articles. For original “parent” object for the includes even those stars that shape. Keeping it small lets you
now it's sufficient to know that a currently active clone – a trick that appear to be separate. constrain the spray close to the
clone is like a duplicate of an object cursor, whereas a large value
that retains a live link to the places the objects over a wider
original: any changes made to the area that is just centered on the
original are immediately reflected cursor.
in the clones. Consider trying to
change the colors of the leaves in The next slider, Amount, is used
our pile. With each sprayed leaf as to adjust the “speed” of your spray
a copy of the original you would can, or the number of objects that
need to dissect the pile and re- are created over a particular
color each leaf individually. If, period. The button to the left can
however, you select the second be used to set whether or not the
Mode button in order to create Amount value is affected by the
clones instead, then changing the pressure of the stylus on a
color requires you to modify only pressure-sensitive graphics tablet.
the original. Any changes to the You may recall similar buttons from
original are propagated, so you can
full circle magazine #86 26 contents ^
HOWTO - INKSCAPE
the Calligraphy tool (see Part 1 8 of to have any real effect.
this series) and Tweak tool (Part
23), but in both those cases the The Spray tool can be very
button is positioned to the right of useful for creating a random
the slider it controls, rather than distribution of objects or, by
the left. This inconsistency in UI is constraining some of the values, a
likely just an oversight, but if you decorative path or outline. It's a
do use a graphics tablet, it's worth shame that it's not possible to
checking the tooltips for these control more of the parameters
buttons to confirm exactly which using pressure or tilt on a graphics
controls they affect. tablet. It's also unfortunate that
Width slider is quite large. Think of the tool doesn't care about the
The Rotation and Scale controls the Spray tool as placing copies of direction of movement – it would
are pretty obvious. Just be aware your object onto a circle: the Focus be great to easily draw a line of
that the values of the sliders use an slider determines the size of the footprints or arrows that twist and
arbitrary scale running from 0 to circle, and the Scatter slider turn to follow your path as you
1 00, rather than just showing the determines how close to the circle move the mouse around. Despite
real numbers they represent: for each copy is placed. those shortcomings, for certain
Rotation, the slider sets the effects the Spray tool is invaluable,
maximum amount that each copy Keeping the Scatter value low, and if you want to introduce some
can be rotated from the original, it's easy to see the effect of the randomness into your drawings it's
with 1 00 meaning plus or minus Focus slider. Setting it to 0 will well worth exploring further.
1 80°; for Scale, a value of 1 00 keep all the copies in a tight circle With the Scatter control set to
means that the sprayed copies can under the cursor, regardless of the zero, the copies are placed very
be up to twice the size of the Width value. Putting it all the way near to the circle that the Width
original. By setting both these to to 1 00 will draw the objects around and Focus controls define.
zero your copies will all be identical the periphery of the spray area, Increasing the Scatter allows the
to one another – and to the original creating a ring of copies whose size copies to be placed further away
object, too. It's a quick and easy is determined by the Width from that ring – although they're
way to turn our simple leaves into a parameter. In this example, I've still randomly positioned, so some
cartoon forest. sprayed the same spot, with Mark uses Inkscape to create three
will inevitably fall close to it. webcomics, 'The Greys', 'Monsters,
Scatter=0 but with different Focus Putting it all the way to 1 00 gives Inked' and 'Elvie', which can all be
The final two sliders affect how values: the blue stars with Focus=0, Inkscape free rein to place objects found at
the sprayed objects are distributed green with Focus=20 and red with anywhere within the spray area, at http://www.peppertop.com/
over the available area. Their Focus=1 00. which point the Focus value ceases
effects are most visible when the
full circle magazine #86 27 contents ^
H O W-TO
Written by Mark Crutch I n ks c a p e - P a rt 2 7
B efore I dive headlong into the
last couple of items in
Inkscape's tool palette, I have a
If this sounds slightly familiar,
it's because similar functionality is
available using the Select tool. By
Another reason to be wary of
this mode is that it's easy to
accidentally delete too many
quick update on the previous holding the Alt key whilst drawing objects. You might think that, if
article. Last time I drew attention Once again the widgets are not you pre-select some objects before
very intuitively positioned – the on the canvas with the Select tool
to the misleading placement of the active, you can draw a thin red line, enabling the tool, you would be
tablet pressure button on the two buttons on the right switch able to selectively remove only
between two different eraser with any objects the line touches
Tweak tool's control bar; but as being selected when the mouse those that the line touches and
well as mentioning it in the article, I modes, but the Width slider on the which were also selected. In
left actually applies only if the button is released. From there, it's
did my duty as a user and filed a just a quick tap of the Delete key practice all of the selected items
bug report. I'm pleased to say that second mode is selected. Time to will be removed as soon as you use
file another bug report... to remove them. Although the
the bug was quickly triaged, then Eraser tool is slightly more direct, the tool – even if you don't touch
fixed in just a couple of days, so the in that there is no need to press any of them! You can imagine how
next major release of Inkscape The first mode is used to delete disruptive this could be if you still
entire objects from your drawing. the Delete key, performing this
should no longer suffer from this task using the Select tool instead have objects selected that are
minor anomaly. With this button selected, drawing outside of the visible canvas area.
on the canvas produces a red line. offers you the opportunity to add
more objects to your selection – or Ideally you should de-select
Now, onto those last On releasing the mouse button, everything (Edit > Deselect) before
any objects that the red line remove some from it – before
two tools – the ones I finally committing your deletion. using this mode in order to prevent
use least in my work touches will be removed. such unexpected behaviour.
with Inkscape – starting
with the Eraser. You can switch to The second mode of the Eraser
this tool using either the tool tool is perhaps more useful: it lets
palette icon, or by pressing Shift-E. you remove parts of paths and
There are barely any options objects by drawing over them. The
available via the tool control bar, Width slider determines the size of
and the reason I rarely use this tool the swathe that will be cut through
is that its features are all available your path, and objects will be
via other tools anyway, albeit a automatically converted to paths
little less directly. Let's take a look as required. Unlike the other mode,
at that minimal tool control bar. pre-selecting objects can be useful
here as only those in the selection
full circle magazine #87 23 contents ^
HOWTO - INKSCAPE
the lines being “connected” to from the edge of your object, even
those objects, at least in the sense though the connection was made
that moving the object also moves to the center. Unlike other charting
the end of the connector line. This tools, Inkscape doesn't give you
makes it a useful tool for creating any option about where on an
flowcharts, diagrams and object the connector links to – you
annotations, although its always create connections using
capabilities are somewhat limited the handle at the center, and they
when compared with dedicated visibly connect to a point on the
applications such as Dia, Calligra edge that you have no control over.
Flow (formerly Kivio) and yEd. The next thing to note is that, by
default, your connector line will
To get started with the happily trample right across any
Connector tool, it helps to have a objects that might lie in its path.
will be converted and carved. seem to convert primitive objects few objects already created.
Alternatively, ensure that nothing to paths when it should, so you may Activate the tool via the icon or
is selected in order to cut through have to manually convert them using the “o” or Ctrl-F2 shortcuts.
all the visible objects. first. As you move the mouse over
objects, you'll notice that they gain
Although this mode is handy for That's all there is to the Eraser a square handle in the center; click
quickly hacking an object into tool: a “touch” mode that saves a and drag a line between the handle
several paths, or just carving a little single keypress compared with the in one object and the handle in
slice off the edge, the fixed width Selector tool approach, and a another to create a connector. You
and profile of the cutting line limits “path” mode that is far less can also click, then move the
its potential. A more flexible functional than the Calligraphy tool mouse, then click again, but
approach is to use the Calligraphy equivalent. dragging the line tends to be more
tool to create a path, then the reliable. You've now connected
Boolean Difference operation to On to the last of the main two objects and if you press the
remove it from your object. For Inkscape tools – one which I rarely Spacebar to switch back to the Inkscape offers a solution to
cutting through several objects the use simply because I don't need it Selector tool, you should be able to this by allowing you to selectively
Calligraphy tool can also be used for the comics I create: the move the objects around and see choose objects that the connector
whilst holding the Alt key to switch Connector tool. that the connector line remains should avoid. First you need to
it to “subtract mode”, which has a attached. select the connector itself (you can
similar effect to the Eraser tool. The Connector tool is select more than one), then select
The only caveat is that the used to draw lines The first thing to notice is that the objects to avoid. Now switch to
Calligraphy tool doesn't always between objects, with the connector appears to emanate the Connector tool and click the
full circle magazine #87 24 contents ^
HOWTO - INKSCAPE
Inkscape to avoid them even if you using the Curvature setting in the
move the objects around later. This Connector's tool control bar. Now
makes it easier to draw your that's what I call a chart!
first button on the tool control bar. connector selected, the third diagram without constantly having
button – which is actually a toggle – to adjust the avoidance rules. You
You should find that the switches that connector between may need to tweak the Spacing
connector is now re-routed to “orthogonal” (allowing only value to get a reasonable layout.
avoid your selected objects, and horizontal and vertical lines) and With an orthogonal connector and
you can use the Spacing control to “polyline” (any angle is allowed). Spacing set to zero, my chart is
adjust the amount of clearance Enabling the toggle certainly starting to look more acceptable.
that's added. If you change your makes things neater, but now
mind, you can use the second there's another problem.
button on the bar to specifically
allow the connector to pass
through the selected objects. With
some avoidance in place, my
sample connector now looks like Once you've used the
this. Connectors tool to forge links
between objects in your chart or
diagram you can also let Inkscape
have a try at arranging it for you.
The button on the control bar
between Spacing and Length
It's still not much of a chart triggers this layout algorithm, with
though, so I'll add a few more the Length value and the two
Because I'd only told the random connections. Connectors remaining buttons affecting the
connector to avoid the green box, can be styled in the same way as final result. These latter controls
it's now passing right through one any other path in Inkscape, so I've aren't interactive, so you need to
of the others. I could select the changed line colors, widths and re-trigger the layout algorithm by
connector and this other box, then dashes as well as adding some End pressing the button each time you
click the “avoid” button again, but I markers to provide arrow-heads. To change any of them. The layout
It's an improvement, but it usually find that a better solution is get the arrow-heads to match the algorithm only on only selected
doesn't look all that tidy. Perhaps actually to select all the connectors colors of the lines, I've used connectors and objects, which can
restricting it to only perpendicular and all the nearby objects, so that Extensions > Modify Path > Color be handy if you just want to tidy up
angles would help. With the you are pre-emptively telling Markers to Match Stroke, and part of a complex diagram, but can
added some shape to the lines also result in a complete mess so
full circle magazine #87 25 contents ^
HOWTO - INKSCAPE
make sure you save first. By you adjust the preferred length of chart... after a little manual intentions! Make sure you save
selecting all of my chart and the connectors in the rearranged adjustment, once again. frequently if you use it. Secondly,
pressing the trigger button you can drawing. Unfortunately it's easy to you can't convert the connectors
see that it's not really as complex go too low with this value, as it The final button tells the into “normal” paths using Edit >
as it initially appears. doesn't seem to follow a very linear algorithm that shapes aren't Object to Path, as you might
scale, which results in boxes allowed to overlap. This didn't expect. You can still manipulate
nestled far too close to each other. prove to be a problem with my test the path's nodes manually by
Just increase the value and hit the chart, but if you prefer to not have selecting a connector then
trigger button again if that the shapes in your diagram switching to the Node tool, but any
happens to you. overlapping one another, it's changes can be lost if you move the
probably best to enable this option linked object or click the trigger
The first of the control buttons anyway. button.
tries to adjust the algorithm so that
lines with end markers will always There are a couple of final You may find the Connector
tend downwards. This doesn't work things to note about the Connector tool useful for simple diagrams,
for start markers, so make sure you tool: first, it's one of the more but I usually find that such simple
draw from source to destination if unstable parts of Inkscape. It can connections are just as easy to
you want to use this mode. cause crashes, mess up the undo draw and modify manually, with no
Enabling this and pressing the buffer, and produce results that need for automatic layout
Don't be too impressed by that trigger results in this layout for my are quite removed from your algorithms. Once you reach a level
result: I had to cheat to get the of complexity where such facilities
chart looking that neat. Inkscape's are useful, it's probably time to
algorithm spread the three arms of switch to a dedicated application
the diagram out quite widely, instead.
creating an unnecessarily sprawling
image. Nevertheless it provided a
clearer view of the relationships I
had randomly drawn, making it
easy to move the boxes around to
give this more professional looking
result. Mark uses Inkscape to create three
webcomics, 'The Greys', 'Monsters,
The three controls that you Inked' and 'Elvie', which can all be
have over Inkscape's own found at
algorithm don't really amount to http://www.peppertop.com/
much. The Length parameter lets
full circle magazine #87 26 contents ^
H O W-TO
Written by Mark Crutch I n ks c a p e - P a rt 2 8
I n this article, I'm going to start
looking at clones in Inkscape.
Clones can easily be dismissed as a
is linked – its “parent” if you like.
This now gives us a collection of
related keyboard shortcuts that
to use a solid arrow pointing from
the parent object to the duplicate,
and a dashed arrow pointing from
minor feature, but, with a few are well worth memorising to the parent object to the clone.
tricks, you can use them to perform speed up your work with Inkscape: With this notation the “Select
marvellous feats that make them Original” command always follows
worthy of several articles just to Ctrl-X - Cut to clipboard
Ctrl-C - Copy to clipboard
back from the tip of a dashed
cover the basics. Ctrl-V - Paste from clipboard arrow to its source. Here's a simple
(at the mouse position) parent object with a single
At the simplest level, a clone is Ctrl-Alt-V - Paste In Place
(at the object's position)
duplicate and a single clone.
nothing more than a duplicate of Ctrl-D - Duplicate (copy then
an Inkscape object that maintains a paste in place) Our duplicated object, which
link to the original. Changes to the
Alt-D - Clone (a linked maintains no link to the parent,
original are automatically
duplicate)
Shift-D - Select Original remains unaffected. The clone,
propagated to the clone, making however, is immediately updated
them ideal when you need several Initially the Paste In Place to reflect the changes to its parent
identical objects in an image. option seems a little redundant, object. That makes it useful for
Creating a clone is as simple as given that the Duplicate command creating absolutely identical
selecting the object and using the appears to achieve the same result. objects – hence the term “clones” –
Edit > Clone > Create Clone menu The difference is that Paste In but, as in real life, it's possible for
entry, or just pressing the Alt-D Place also works between layers, Inkscape's clones to develop slight
keyboard shortcut. The new clone and even between Inkscape differences to their parents. A
will be created directly on top of documents, so you can copy or cut clone, as well as maintaining a link
the original object, and will be from one drawing's layer, then As you might expect, all three to its parent, is also an object in its
selected automatically so that you paste into the same location in a objects look the same. The own right, and is subject to the
can immediately move it to different layer or a different difference only becomes apparent same transformations as any other
somewhere else. drawing. when the parent object is modified object. Clones can be rotated,
in some way – such as changing it's scaled and skewed, have their
With a clone selected, the Edit > So much for the theory, let's fill and stroke, or altering the opacity reduced, or have filters
Clone > Select Original menu item create a duplicate and a clone and roundedness of the corners. applied, independently of the
(or Shift-D shortcut) will select the see the difference between them. parent. With some rotation, scaling
original object with which the clone For notational purposes, I'm going and opacity changes applied to the
full circle magazine #88 28 contents ^
HOWTO - INKSCAPE
clone, our previous image looks shadows by blurring a clone and look at a basic three object chain (2) A duplicate of (1 ). Parent to (4) and (5)
like this. reducing its opacity. This is where a grandparent is duplicated (3) A clone of (1 ). Parent to (6) and (7)
(4) A dupe of a dupe of (1 )
especially beneficial when dealing or cloned to form a parent which is, (5) A clone of a dupe of (1 )
with text objects as the shadow will in turn, duplicated or cloned to (6) A dupe of a clone of (1 )
automatically adjust to any edits create a child. I've drawn all the (7) A clone of a clone of (1 )
you may make to the text content. possible combinations, and given
each object or clone a number so What happens when we modify
that it's easier to track what's the attributes of (1 )? As before, our
happening. Starting with the basic duplicated object (2) remains
arrangement of objects, as with the unaffected, so (4) and (5) also
earlier two-object example, all the appear untouched. The first-level
elements look the same, whether clone (3) changes, as does its clone
they've been duplicated or cloned. (7). But what about (6)? That was
made as a duplicate, so you might
It's important to note that these expect it not to change, yet you can
changes are applied after the clone
has been synchronised with its
parent – you can think of them as If a clone is just another type of
being added on to the base object, then surely it must be
attributes of the parent. So the possible to copy and paste it. If
clone's fill and stroke colors will that's possible, then what about
still change if the parent's are duplicating it, or even cloning it?
modified, and any rotation, blur The simple answer is that you can
and opacity changes to the parent do all these things with clones, but
have a cumulative effect with the results might not always be
those that are applied to the clone. what you expect. You can create
For example, this clone has a 45° long chains of relationships – (1 ) is the starting point, our
rotation applied; if I were to rotate clones of clones of clones... of grandparent object. This is clearly see that it does.
the parent by 1 5° then the clone clones of objects – but the duplicated to create (2), and cloned
would also rotate by an additional cumulative nature of any applied to create (3). Each of those objects The thing to bear in mind is that
1 5° bringing its total rotation to transformations can result in a is duplicated and cloned to (6) is an exact duplicate of (3) –
60° compared to its original small tweak to one item having a produce the remaining items. The even down to its linkage to the
position. knock-on effect all the way down provenance of each object is grandparent object (1 ),
the chain. therefore: represented by the gray line on the
One simple but effective use of image. You can see, therefore, that
this feature is to create drop To keep things simple, I'll just (1 ) The original grandparent object. a second clone of an object can be
full circle magazine #88 29 contents ^
HOWTO - INKSCAPE
created either by cloning the were to be modified. Finally (7) separate images. enable, you're better to create
object a second time, or by does rotate because, as a clone of a clones that link directly back to a
duplicating an existing clone. The clone, it's made up of the The left hand image is the common parent.
difference is that duplicating a cumulative effects of all the parent in this case. The top right
clone will also duplicate any other changes made to both (1 ) and (3). image is the result of cloning the Remember, either clone from
attributes associated with it, so if parent, then scaling the clone the original parent each time (Alt-
you've rotated the clone or added If that's not enough to make before applying a clipping path. D), or clone once then duplicate
a blur, those effects will be present your head spin, I'll leave it as an The bottom right image is the the clone (Ctrl-D). If you're not sure
on the new clone, even though it's exercise for the reader to consider result of cloning the clipped clone whether you're cloning the original
linkage goes back to the chains of four or more objects! and applying a second clipping path object or an existing clone of it,
grandparent object. to that. The same effect could also check the status bar. If it reads
One good reason for using have been achieved by clipping a “Clone of Clone of Clone...” then
Now let's look at what happens clones is that they tend to be less second clone of the parent, but I you might want to re-think your
if we modify (2) and (3). For this resource hungry than the also wanted to demonstrate that a approach.
example I've rotated them through equivalent separate objects. In clone of a clipped or masked object
terms of storage space, a clone is still retains the clipped appearance
little more than a reference to – note the curved sides of the
another part of the SVG content, bottom right image that result
helping to keep the file size down. from the elliptical clipping path
This can be particularly useful when used on the top image.
you're dealing with complex paths,
groups or embedded images. Although clones can result in
Consider this example that uses a substantial space savings, chaining
single image and some cloning, them too deeply can slow
rather than embedding three Inkscape's rendering of your image.
In the case of the Mona Lisa
example, it's clear that the bottom
45°. right image can't be processed
until after the top one – including
(4) remains the same, because it its clipping path – has been
has no linkage to any of the other calculated. Extending the chain Mark uses Inkscape to create three
objects. (5) rotates because it's a further to create clones of clones webcomics, 'The Greys', 'Monsters,
clone of (2). The linkage between of clones just exacerbates the Inked' and 'Elvie', which can all be
(6) and (1 ) means that it's not problem. Unless your design really found at
affected by the rotation of (3) – does require the sort of attribute http://www.peppertop.com/
although it would be affected if (1 ) inheritance that such chains
full circle magazine #88 30 contents ^
Full Circle Team

HOW TO CON TRI BUTE Edit or - Ronnie Tucker


ronnie@fullcirclemagazine.org
FCM# 116 Webmast er - Lucas Westermann
FULL CIRCLE NEEDS YOU! Deadline:
A magazine isn't a magazine wit hout art icles and Full Circle is no Sunday 11t h Dec 2016. admin@fullcirclemagazine.org
except ion. We need your opinions, deskt ops, st ories, how-t o's, Release:
reviews, and anyt hing else you want t o t ell your f ellow *bunt u users. Special Editions - Jonathan Hoskin
Friday 30t h Dec 2016.
Send your art icles t o: art icles@f ullcirclemagazine.org Edit ing & Proof reading
We are always looking f or new art icles t o include in Full Circle. For help and advice Mike Kennedy, Gord Campbell, Robert
please see t he Of f icial Full Circle St yle Guide: ht t p:/ / url.f ullcirclemagazine.org/ 75d471 Orsino, Josh Hertel, Bert Jerred, Jim
Dyer and Emily Gonyer
Send your comment s or Linux experiences t o: let t ers@f ullcirclemagazine.org
Hardware/ sof t ware reviews should be sent t o: reviews@f ullcirclemagazine.org Our t hanks go to Canonical, t he many
Quest ions f or Q&A should go t o: quest ions@f ullcirclemagazine.org t ranslat ion teams around t he world
Deskt op screens should be emailed t o: misc@f ullcirclemagazine.org
and Thorst en Wilms for t he FCM logo.
... or you can visit our sit e via: f ullcirclemagazine.org

Get t ing Full Circle Magazine:


For t he Full Circle Weekly News: EPUB Format - Most edit ions have a link t o t he epub f ile
on t hat issues download page. If you have any problems
You can keep up t o dat e wit h t he Weekly News using t he RSS
wit h t he epub f ile, email: mobile@f ullcirclemagazine.org
f eed: ht t p:/ / f ullcirclemagazine.org/ f eed/ podcast

Or, if your out and about , you can get t he Weekly News via Issuu - You can read Full Circle online via Issuu:
St it cher Radio (Android/ iOS/ web): ht t p:/ / issuu.com/ f ullcirclemagazine. Please share and rat e
ht t p:/ / www.st it cher.com/ s?f id=85347&ref id=st pr FCM as it helps t o spread t he word about FCM and Ubunt u.

and via TuneIn at : ht t p:/ / t unein.com/ radio/ Full-Circle-Weekly-


Magzst er - You can also read Full Circle online via
News-p855064/
Magzst er: ht t p:/ / www.magzt er.com/ publishers/ Full-Circle.
Please share and rat e FCM as it helps t o spread t he word
about FCM and Ubunt u Linux.

29 cont ent s ^

You might also like