In this tutorial, we'll explain how to create a headphone plugs with cables using gradients. The techniques covered in this tutorial can be used to create other types of wires and electrical equipment as well. Let's get started!
Final Image Preview
Below is the final image we will be working towards. Want access to the full Vector Source files and downloadable copies of every tutorial, including this one? Join Vector Plus for just 9$ a month.
Tutorial Details
- Program: Adobe Illustrator CS4
- Difficulty: Beginner
- Estimated Completion Time: 1.5 hours

Step 1
Open up a new document and select the Rectangle Tool (M). Create a rectangle. This will be used for the cable. We will keep it simple, for now set it to the default white fill and black stroke.

Step 2
Duplicate the rectangle below the first (Alt-drag).

Step 3
Create another rectangle and set the height to the same as the two long rectangles together, as shown below.

Step 4
Duplicate the small rectangle five times. Either use Alt + drag and the Command + D or use the Blend Tool. Select all of them and align them along the vertical.

Step 5
With the shapes still selected, distribute them now horizontally .

Step 6
Create another rectangle and repeat the Steps three to five times.

Step 7
We now have six smaller rectangles and seven slightly taller ones in between.

Step 8
Again, create another more square rectangle next to the smaller ones.

Step 9
Create yet another rectangle, but make it slightly bigger. Use the Direct Selection Tool (A) to select both right side points, then use the Scale Tool (E) to scale them up, while pressing Shift + Option.

Step 10
Create one more square looking rectangle.

Step 11
Add another one and make sure you keep the sizes oriented with the previous ones.

Step 12
We are now moving on to the thin part of the plug. Create another rectangle, which is the same height as the last one, but much thinner. Quick Tip: You could just duplicate the rectangles and scale them to the correct sizes.

Step 13
Make another rather long rectangle and align it to the vertical center of the rest of the shapes.

Step 14
Rinse and repeat!

Step 15
We need two small thin rectangles that will simulate the two small black rings on a headphone plug.

Step 16
Rinse and repeat.

Step 17
Copy the small rectangle from Step 15.

Step 18
Add another rectangle, but on the right side add one path point with the Pen Tool (P) in the middle of the path line and with the Direct Selection Tool (A). Repeat the scaling we did in Step 9. Now select the middle point and move it to the right. You can do this by hitting the right arrow key on your keyboard.

Step 19
This is the basic shape composition of the headphone plug.

Step 20
Select the small shapes we created earlier in Step 3-7 and group them (Command + G). Now go to Effect > Stylize > Rounded Corners and apply a radius of 2pt.

Step 21
Let's move on to the colors. Create a linear gradient that goes from 100% black to 90% black to 100% black. Now drag it into the Swatch Palette.

Step 22
Setup another linear gradient with browns and beiges to simulate a golden color and drag it into the Swatch Palette.

Step 23
Now use the Selection Tool (V) to select the two rectangles that simulate the cable, then apply a dark gradient. Set the radius in the Gradient Palette to 90 degrees. Keep the Stroke.

Step 24
Apply the same gradient to the shapes with the rounded corners but set the radius to 0 degrees.

Step 25
Select all the other shapes and fill them with the golden gradient, radius 90 degrees. Just keep the two small rectangles filled with black.

Step 26
Select each golden shape separately, duplicate it on top (Command + C + F) and set the Layer Mode to Multiply.

Step 27
Select the next two shapes and repeat Step 26.

Step 28
Skip the next two shapes and select the following two rectangles. Repeat the duplicate and Layer Mode change.

Step 29
Select the two black shapes, duplicate them on top and increase the width with the Scale Tool (E), then fill them with the golden gradient and set the Layer Mode to Multiply.

Step 30
Last but not least, duplicate the tip shape on top and change the Layer Mode to Multiply.

Step 31
Select the cable shapes and make a duplicate. Then select the Warp Tool (Shift + R) and start pushing the cable shapes.

Step 32
Keep it simple and apply slight warping.

Step 33
This is what it could look like. Make sure you don't warp to much so the shapes won't separate.

Step 34
Connect the warped cables to the plug and voila, we have our little golden headphone plug. I applied small white squares which I duplicated and then grouped to simulate the rippled texture on a plug.

Conclusion
I grouped the shapes, reflected them and applied an Opacity Mask to simulate a reflective surface. You can easy change the colors or apply other gradients. Have fun!

Subscribe to the Vectortuts+ RSS Feed to stay up to date with the latest vector tutorials and articles.
Plus Members
Source Files, Bonus Tutorials and
More for $9 a month for all TUTS+
sites in one subscription.






























User Comments
( ADD YOURS )devDsine November 20th
nothing else other than a pile of rectangles
( )Alex November 20th
I think that the point is trying to teach people how to use this program and get the basics of it. If you take a peak at the “Tutorial Details” at the top and then read down to “Difficulty: Beginner” that is what i’m basing that point on.
Anyway, quite good and does not look bad at all when done
( )devdsine November 20th
I couldn’t find any tips those are useful to me.
And I didn’t notice the “difficulty” part.
Now I realize I was a little rude.
Sorry guys
Niek November 20th
I agree. Why would you want to make this? It’s useless. Just a pile of rectangles. I’m sorry.
( )Doug December 27th
What is anything but a pile of geometric shapes?
designfollow November 20th
great tutorial
thank you
( )margaret November 20th
Simple tutorial with decent results. My only issue would be that the wires look odd.
( )Liz November 20th
I think the beauty of this tutorial is showing you exactly how you can break down complex objects and build them out of simple shapes.
Its the same stuff you learned as kid when you were trying to draw animals. (Circle for the head, body as oval, legs as rectangles).
The concepts are great for anything you try and create in illustrator.
Added it to our freebie vector resource site, thanks!
( )dan November 20th
don’t really think the outcome was great the wires ruined it for me, thanks for sharing anyway
( )Design Informer November 20th
Great tutorial. I really need to start learning more Illustrator. Thanks Vector Tuts!
( )Don November 20th
I think that the benefit here will be for beginners who cannot yet break a design into single steps. It’s a bit of a digital version of kids’ books that tech you to draw something by using primitives.
The one tip all can take away is “how can I take this complex image I want to make and distill it into discrete shapes?”
For the wives though, I would suggest that you use the pen tool to create your cord.
( )Alex Mitchell November 21st
I would have to agree with Margaret that the wires are a little odd but this is a nice tutorial for beginniners and getting used to those many gradients used in Illustrator. Thanks for sharing!
( )Theo Hodkin November 21st
Hm, it’s very simple. And the warp effect at the end seems a bit half-assed and, frankly, unrealistic. The overall outcome of the actual jack is okay, but the wires certainly need work.
( )Ash Smith November 21st
For the wires I would of used the pen tool rather than the warp tool, but the overall idea of using simple shapes to build this is great!
Also, I must say I’m not a fan of the gradients either, I would of left it at step 19 or 20 looks fab there.
For those wondering where this would be useful, building diagrams like these can show the shape and size of a headphone jack for an mp3 store of some sort, rather than using a high res close up. I happen to be working on a MP3 Store right now, and will be suggesting this to the client!
( )Waasys November 21st
Wires look kinda weird, but mostly good result!
( )Daniel November 22nd
Overall, great job.
Personally, I think the proportion of the plug to the housing is not accurate. The extruding plug should a tad fatter in diameter.
( )Mac November 23rd
Never used my warp tool, but I will do so in the future!
( )Thanx for sharing this tutorial!
Geraldine November 30th
As a beginner, this taught me a great deal about the programme. Thank you for your contribution.
( )Asim December 22nd
Nice work….!
( )antony December 30th
simple and and very useful for begainners
( )Listoric January 18th
Thanks for the tut, it is indeed for beginners and it helped me to understand how to use gradients and inspired me to experiment with opacity masks.
I’m totally used to PS and it is just so different to AI. Hotkeys and menu handling/control whatever you want to call it is also so different. I feel like a total newbie, pressing the wrong buttons again and again. Absolutely frustrating. ^^
( )