Create curved vector ribbons in Inkscape
In this tutorial I'll take you through the steps to design and create a stylish, curved vector ribbon overlaid with a text label in Inkscape. This is a good tutorial for learning about managing groups of objects and keeping them together when applying Live Path Effect transformations such as the Bend deformation we'll use here.
What's more, we'll build the banner in such a way that we can retain the text as text, which is a bonus in case you need to change the wording or tinker with different fonts after the Bend has been applied.
Let's take a look at the graphic we're aiming to achieve by the end of this tutorial.
Skills you'll be developing in this tutorial
- Basic shape creation and Z-order management of simple objects
- Application of text to paths and how this affects the text item
- Path management and creating 'tight' designs
- Controlling groups of objects and applying Path Effects to collections of shapes as one
Step 1 - Set up your canvas and create the basic shapes
Open up Inkscape and head for the Document Properties dialog box, using File --> Document Properties or Ctrl, Shift and D on the keyboard. To keep things easy to work with, we'll use a fairly large workspace for a web graphic: choose a canvas Width and Height of 350 pixels and close the window. Make sure you've got Snap bounding box corners selected, and toggle the default grid on with the # key to make our lives easier as we create shapes.
Activate the Rectangle tool and drag out a 210px by 40px rectangle on the canvas; the grid will help you out. Give it a a fill of #3b88c6 and no stroke, using the Fill and Stroke dialog box (Ctrl, Shift and F).
Switch to the Pen tool (B on the keyboard) and, using the grid as a guide, click on a series of points to make an outline for the ribbon's ends - a polygon which has triangular edges on one side, and is the same height as your main ribbon rectangle. Using the grid makes this a very easy process. Hover over the first point you created and click again to close the shape. Click and drag it into position with the Select Tool, which you can activate with F1.
Give this shape the same fill as the main object by using the Dropper tool. Press D to change to it and, with the new shape still selected, click the rectangle to sample the colour and replicate the fill. Use the Fill and Stroke pane to remove the Stroke.
Press Ctrl and D or click Edit --> Duplicate to create an exact copy of this ribbon end, then hit the H key or use Object --> Flip Horizontal to flip the copy ready for it to be positioned on the opposite side. Tip: hold the Ctrl key down when dragging it across to lock the movement to the horizontal axis only.
If you've got your ribbon sections alongside the main shape like I have, move them in and up slightly so they look like they're tucked behind the front object. As all our shapes are the same colour, it can sometimes help to change it temporarily so you can see what's happening.
When you've got them positioned correctly, send them behind the main rectangle with the End key, or Object --> Lower to Bottom in the menus.
With the Pen tool, draw in the triangular shapes for the folds of the ribbon. Start with the easy edges - the straight vertical and horizontal sides of the shape - then finish the shape along the hypotenuse of the triangle. Remove the Stroke from this object and change the fill to a slightly darker shade of the same colour, using the Fill and Stroke pane - my colour here is #345d7f - which will imply a shadow and add depth to the illustration.
Looking at how it stands now, I think it's also a good idea to change the colour of the end section slightly, to distinguish it from the main rectangle area. I've gone with a fill of #458ec9. It's a subtle change, but it really helps with the clarity of the shapes' edges.
Duplicate this new triangle and move it to the mirrored position on the other side of our ribbon so we've got a nice back-fold effect on either end of our ribbon. Change the end-piece object's fill over here too.
Step 2 - Add the lettering and extra ornamental elements
So we've got our ribbon background now - great. Let's add the all-important text, and follow that with a few extra elements to add interest, then apply the deformation to bend everything as one.
Pick up the Text tool with the T key, then click on the canvas somewhere below your central shape, and type your text. Apply appropriate font and sizing choices using the tool's settings bar.
Try to judge things like size and letter and word spacing so the final result fits across the length of the front piece with some space either side, while remaining readable. Keeping the two things close to each other on the canvas will help in this endeavour.
Now for the trickery. Activate the Pen tool again, and click on two points across the front of the ribbon, where you want the baseline of your text to sit. Press the Enter key, or double-click the end-point of the line to complete it. Use the grid again to help you centre it horizontally.
Flip back to the Select tool and select the text and path at the same time by holding the Shift key as you select them. Then select Text --> Put on path from the menus.
The text and path are now linked, so any changes you make to the path will be reflected in the position, angle and curvature of your text. Therein lies the key of what we're trying to achieve, of course.
One problem we do have, is that we've now got an ugly line getting in the way of our drawing; one that we can't remove, because our text is tethered to it. Not a problem: select the path only, and press the End key to send it to the back of the stack, leaving your handsome text floating beautifully in the centre of your ribbon banner. Whenever that path is selected, you can adjust the positioning and alignment of the text that's on it using the arrow keys, including holding Alt down at the same time for more precise alterations.
Take this opportunity to tweak your character-spacing if you find your text is not quite aligned perfectly. Also, we can now change the fill colour of our text to white and still see it.
Now add any other ornamental items you want to. Circles or stars in the inverted parts of your banner edges work well, or cut some nicks into your ribbon with some drawn triangles and the Difference operation.
Step 3 - Apply the transformation and fix any problems
Right then, time for the magic - watch closely, as there is some quirky behaviour within Inkscape that can trip us up if we're not careful.
With your ribbon elements all in place, select everything we're going to apply the Bend transformation to. Remember, we don't need to select the text - only the path it sits on. Inkscape will take care of that bit for us.
But with the path behind everything else, how do we do that? Simply click on the text to select it, then press ! or use Edit --> Invert Selection to select everything apart from the text. Genius.
A VERY important point: the Live Path Effects we're about to use will only work in Inkscape if all the shapes are Paths.
The stars and front rectangle are not currently Paths, so convert everything we've got selected using Ctrl, Shift and C or Path --> Object to path in the menus. Then Group these objects together with Ctrl and G.
Use the information toolbar at the bottom once again to check what you're dealing with: It will go from a mixture of object types, to 8 objects of type Path, to Group of 8 objects, for example.
Next, press Ctrl, Shift and 7 (not the world's catchiest keyboard shortcut, but there you go), or click Path --> Path Effect Editor. In the Live Path Effects panel, select Bend from the drop-down box, and click Add to add that effect to our Group.
Move the mouse over to the canvas area and, where the green line running through the centre of your Group has appeared, click and drag the centre of the line in the direction of your choosing, to curve everything we've made. Don't overcook it - a subtle bend will more than suffice for a pleasing finish.
Problems you might encounter
There are two very Inkscape-ish quirks here that can throw your design off-course.
Firstly, if you're using a version of Inkscape earlier than 0.48.5, there's a bug where you'll have to Ungroup them (Ctrl, Shift and G), then Group them again, otherwise the Bend Live Path Effect does some very alarming things with your shapes. Had me stumped for ages, I have to admit.
Secondly, depending on which direction you Bend to the grouped objects in, the text can sometimes flip around and appear upside down on its path. This isn't a problem either, simply Tab through the objects until you reach the path (which is at the bottom of our stack, remember, then select Path --> Reverse from the menus. Job done.
Anyway, avoid (or circumvent) those quirks, and you're winning.
Step 4 - Carry out any tweaks and place the graphic in context
Back to the project. Here's the proof that our text is still editable on the canvas. You can even change the font, size, spacing or alignment at this point. Use the Node tool (keyboard F2) to select and edit objects within the Group, which is handy for re-colouring or other similar changes.
Keeping the elements together as a Group until the last minute is also a good idea; if you simply Ungroup everything without Converting it to a Path first, you'll find all your hard work goes awry.
Well done! With the hard work done, it just leaves us with the task of adding any supplementary elements to our design and completing it with an appropriate background.
A popular way to finish designs like this is to apply a texture or distressing of the vector graphic, to give a more aged, vintage feel to it. Something like this, for example:
Want to know how to do it? Well you're in luck, because in my next tutorial we'll do exactly that, and you've not got long to wait to see it, either. So, was this tutorial a blue riband winner, or has it left your nerves cut to ribbons? Leave a comment and let me know!
comments powered by Disqus