Inkscape
Inkscape tutorial: Sketch and Hatch

vsd_tut_simple_hearts_doodle_thumbMost of the tutorials on this site are quite lengthy as they are targeted at the beginning Inkscape artist and show how to go from a blank canvas to a complete illustration.

I was finalizing some simple illustrations for use on e-cards and I figured that I might as well explain some simple tricks with great effects in Inkscape. All still in a Valentines theme, but I am sure you can find your own use for it!

Techniques demonstrated: Spiro Curves, Live Path Effects Sketch and Hatching, Visualize Nodes.

I assume little Inkscape knowledge, and the tutorial should be easy to follow for a beginning Inkscape artist.



Open Inkscape and start with a default document.

I made the drawing on an A4 size paper, but as we draw in a vector editing program, size does not matter. The heart in the final design ended up being about 1/3 page width in size.

 

Before we start

Inkscape remembers by default the last settings of a tool. Therefore objects you draw may differ from the screenshots in this tutorial. Help on how to correct the most common settings can be found on this page: Inkscape Beginner Tips (opens in a new window).

 

Basic Shape: Heart

For this tutorial I use a simple heart shape, drawn with the Bezier tool in Spiro mode. Spiro is great for smooth flowing curves, and if you are not yet familiar with the concept then check out my Spiro Swirls tutorial too as it explains all the basics.

 

Draw the perfect heart

The fastest way to draw a perfect heart shape with Spiro is this:

  • Select the bezier tool vsd_bezier_tool.
  • Set the drawing mode to Spiro, apply no shape.

vsd_bezier_tool_settings_spiro

The Bezier tool is used to draw paths, with either smooth nodes or cusp (sharp) nodes. In this case I make no effort to draw smooth nodes, as Spiro will take care of that later.

  • Just click with the cursor on the canvas, following roughly the shape of a heart.
vsd_tut_simple_hearts_draw_bezier
  • Finish the path by either a click with the right mouse cursor, or hit enter on the keyboard.
  • Select the Node Tool vsd_node_tool.
  • Select the 2 most left nodes by either:
  1. dragging a selection window (rubberband) around them, or
  2. select one node, hold down the Shift-key and add the other node to the selection.
vsd_tut_simple_hearts_align_nodes
  • Open the Align and Distribution dialog vsd_align_distribute_dialog (Shift + Ctrl + A)

While using the Node Tool vsd_node_tool, this dialog provides some options to quickly align nodes.

vsd_align_nodes

  • Press the "align selected nodes vertically" button vsd_align_nodes_vertically.

Your drawing should look like this:
vsd_tut_simple_hearts_align_nodes2

  • Still with the Node Tool vsd_node_toolselected:
  • Select all nodes: Ctrl+A, or draw a selection window (rubberband) around them:
vsd_tut_simple_hearts_select_all_nodes
  • Press the Auto-smooth nodes button vsd_auto_smooth_nodes on the Node Tool - Tool Control bar.

Now the Spiro effect kicks in. Your drawing should show a perfect flowing half of a heart shape:
vsd_tut_simple_hearts_auto_smooth

Spiro is great, but upon editing and transforming paths, sometimes unexpected things happen.

  • Apply the Spiro effect permanently to the path by selecting Path > Object to Path from the menu (or by clicking this button vsd_object_to_path on the Node Tool - Tool Control bar):

vsd_tut_simple_hearts_spiro_to_path

To heal a broken heart

  • Use the Select tool vsd_select_tool.
  • Duplicate the path: Ctrl+D (or Edit > Duplicate from the menu). The duplicate will be exactly on top of the original.
  • Flip the duplicate horizontally vsd_flip_horizontally.

vsd_tut_simple_hearts_duplicate_half

  • Select both objects.
  • Open the Align and Distribute dialog vsd_align_distribute_dialog (Shift+Ctrl+A) if you closed it.
  • Align the outer edges of the object such that you end up with a heart shape. The selection order determines whether "Align left edge of object to anchor right edge" vsd_align_edge_right or "Align right edge of object to anchor left edge" vsd_align_edge_left has to be used. Just try the other if you do not end up with a heart Wink.

Your drawing should look like this

vsd_tut_simple_hearts_align_edges

Follow one path

The heart is now made up from 2 individual paths. See the notification in the status bar:
vsd_tut_simple_hearts_2_paths

  • Make sure both paths are selected.
  • Use Path > Combine from the menu (Ctrl+K).
  • Check the statusbar - now the heart is a single path:

vsd_tut_simple_hearts_1_path
The path is still open, there are 2 subpaths.

  • Select the Node Tool vsd_node_tool.
  • Select the 2 nodes at the bottom of the heart (draw a selection window - rubberband)

vsd_tut_simple_hearts_select_nodes_to_join

  • Check the status bar: 2 nodes in 2 subpaths are selected.
  • Join the selected endnodes by clicking this button vsd_join_endnodes.
  • Repeat for the 2 nodes the top centre.

Now the heart exists of a single continuous path.

vsd_tut_simple_hearts_full_heart

  • Simplify the shape by using Path > Simplify.

vsd_tut_simple_hearts_full_heart_simplified

Note : Simplify reduces the number of nodes in a path, and can often be used without any significant loss of details. If you do not like the results, just undo (Ctrl+Z). Less nodes means less complexity. It is a good habit to simplify paths where possible.


You now have a perfect heart shape, that is a single path and can be filled with any color.
With some practice you should be able to draw shapes like this within seconds.
Now is a good time to save your work.


Live Path Effects

Live Path Effects (LPE) are AWESOME! And you used them already but just may not be aware of it. The Spiro effect that we used earlier, was actually an LPE, but Inkscape dealt with it "under the hood". Check out the Spiro Swirl tutorial if you want to know more about that.

Note: Live Path Effects sometimes behave unexpected. Know that you can apply a path effect permanently to a path by selecting Path > Object to Path from the menu (as we did before).
Save your work often while working with LPEs.

 

Design 1: Heart doodles.

  • Make a duplicate of the heart (Ctrl+D) for further use later.
  • Move it aside with the Select Tool vsd_select_tool.

 

Hatches

  • Select the heart.
  • Open the Path Effect Editor from the menu Path > Path Effect Editor (Shift+Ctrl+7).
  • Select "Hatches (rough)" from the drop down list and press the Add button.

vsd_tut_simple_hearts_add_hatches

The heart shape is filled with a basic hatching pattern and the outline has disappeared. It does not look too recognizable:

vsd_tut_simple_hearts_hatches_1

The Path Effect Editor provides a large number of options to modify the hatching, but it is much easier to directly modify the hatching on screen.

  • Select the hatching with the Node Tool vsd_node_tool.

Now the path outline is shown, the hatches are shown in green and we have some controls to adjust the hatching (as here shown within the green ellipse).

vsd_tut_simple_hearts_hatches_control_nodes
Four control nodes are shown, which are used to modify the spacing, direction and amount of bend of the hatches. You can move them with the Node tool.

  • The circle nodes are reference points.  
  • The 2 diamond nodes unfortunately look the same but have very different functions. The notifications in the status bar are useful to recognize them (but don't ask me why it is not written in laymen's English):
  1. Bend node. Hover over it and the notification area reads "Relative position to a reference point defines global bending direction and amount". In plain English: it determines the amount of bend of the hatches. Further away from the reference nodes = more bending. Move it to the other side of reference nodes = inverse the bend direction.
  2. Scale/Direction node. Hover over it and the notification area reads "Defines hatches frequency and direction". In plain English: the number of hatches per area and the rotation based on the reference nodes. Further away from the reference nodes = less hatches. Move it around the reference nodes to rotate the hatching.

 

  • Experiment with the hatching, you'll get the idea. Your heart shape should fill out nicely.

Mine looks like this:
vsd_tut_simple_hearts_hatches_2

  • Use the Select tool vsd_select_tool and set the stroke colour to red: hold the Shift-key down and click on a red colour swatch in the colour palette at the bottom of the screen.
vsd_tut_simple_hearts_hatches_3
  • Save your work.

 

Sketch

  • Select the duplicate heart.
  • Make a duplicate (Ctrl + D) for design 2 and move it aside.
  • Open the Path Effect Editor from the menu Path > Path Effect Editor (Shift+Ctrl+7) if it is not already open.
  • Select "Sketch" from the drop down list and press the Add button.

vsd_tut_simple_hearts_add_sketch

The effect is applied immediately:

vsd_tut_simple_hearts_sketch_1

Again a wealth of settings are presented to manipulate the sketch result:

vsd_tut_simple_hearts_sketch_settings

Feel free to experiment with the settings.
I just lowered the number of strokes to 2 and kept everything else default:

vsd_tut_simple_hearts_sketch_2

  • Use the Select tool vsd_select_tool and set the stroke colour to red: hold the Shift-key down and click on a red colour swatch in the colour palette at the bottom of the screen.

vsd_tut_simple_hearts_sketch_3

 

  • Make a duplicate of the heart with the sketch path effect applied (Ctrl + D) and move it aside for design 2 again.
  • Move one of the sketched hearts over the hatched heart design. Your drawing should look like this:

vsd_tut_simple_hearts_doodles_design

  • Save your work.

That's pretty nice for a few minutes work.


Design 2: Connect the Dots

  • Select the heart shape path (not the sketched one) that was put aside earlier.
  • Select Extensions > Visualise Path > Number Nodes from the menu.

vsd_tut_simple_hearts_number_nodes

  • Use a font size and dot size to your likings.
  • Tick the "Live Preview" checkbox to preview the effect and press the Apply button when you are happy with the result.
vsd_tut_simple_hearts_numbered_nodes
  • Move the duplicate sketched path over the numbered path.

vsd_tut_simple_hearts_connected_dots


Wow.. and that should have taken less than a minute :D

  • Add some romantic text "You found the path to my heart!" to make the design suitable for a nice greeting card for someone special.

vsd_tut_simple_hearts_connected_dot_design

  • Save your work.


That's all folks. As usual: feedback is as always highly appreciated.

 

Downloads

Please do not claim this design as your own. Read our TOU.

 

Comments  

 
0 # John LeMasney 2010-02-13 14:03
Another really short simple sweet tutorial -- the LPE tools in Inkscape have been loads of fun to play with. I'm really looking forward to trying the spray tool in .48 too!
Reply | Reply with quote | Quote
 
 
0 # syllie 2010-02-13 14:15
Hi John,

Nice to see you checked this one out too!

The Spray Tool in 0.48 is awesome (I am toying with the developers version on Ubuntu) and works quite similar to the hose tools that other vector editors feature. Sure will be another option for cool tutorials and designs.

Cheers,
Syllie
Reply | Reply with quote | Quote
 
 
0 # Mahalo 2010-02-15 17:11
Hi!
I'm SO happy I have found your wonderful site!
You are doing a great job.
Reply | Reply with quote | Quote
 
 
0 # syllie 2010-02-16 08:07
Hi Mahalo,

I am glad you like the site, and it is good to see you as a returning visitor too

Cheers,
Syllie
Reply | Reply with quote | Quote
 
 
0 # David 2010-03-09 07:02
Hey, that was a nice job.

Congratulations !

Reply | Reply with quote | Quote
 
 
0 # jada 2010-04-01 21:51
Hi. I am new to INKSCAPE and your tutorials are SOO helpful. I don't know what half of the buttons do but I have learned alot by these. Thank you!
Reply | Reply with quote | Quote
 
 
0 # syllie 2010-04-02 13:20
Hi Jada,

Inkscape is an awesome vector editor but I know it can be a bit hard in the beginning. I am glad you find the tutorials helpful. Thanks for your feedback.

Syllie
Reply | Reply with quote | Quote
 
 
0 # Fajar Suryantoro 2010-07-06 15:51


I dont know what to say.. Is fucking awesome!!
Reply | Reply with quote | Quote
 
 
0 # Mary 2010-07-12 06:33
I am new at Inkscape and am trying really had to learn how to use it. I just wanted you to know how much I am learning from you! Thanks!!!
Reply | Reply with quote | Quote
 

Newsflash

We are very proud that the Spiro Swirls Tutorial for Inkscape has gained such popularity.

Today, 23 February 2010,  we reached the 10,000 viewers mark and our statistics show that it is still the most popular tutorial on this site.

Thank you all for viewing and providing feedback. We do our best to make this site the best beginner resource site for Inkscape.