Preview

How to Create a Transparent Battery Icon

Sep 6th in Illustration by Bill Labus

In this tutorial, we'll create a detailed icon of a battery similar to the one used for the iPhone touch. The battery "fuel" color can be changed as well as the "fuel" level, allowing the icon to be used to create a battery or power meter for applications, or simply as a graphic in any type of design.

PG

Author: Bill Labus

I'm a high school senior in South Carolina, looking to pursue a career in graphic design or industrial design.

Final Image Preview

Below is a preview of the final battery image we're working towards.

Final

Step 1

We'll start by creating a new document and filling it with a solid black background. You can make yours whatever size you'd like, mine is 600 px by 400 px.

Now that we have our document, we'll begin with creating the metal cap at the end of the battery. Start by drawing a shape, as shown below. The colors in the gradient from left to right are 90% gray, white, and black. Additionally, give the object a 1px Feather and lower its Opacity to 75%.

Step 2

Copy (Command + C) this object and paste the copy directly in front (Command + F). Then, nudge the copy one pixel to the right using the right arrow key. The colors for the gradient from left to right are 80% Gray, Black, and 80% Gray. Additionally, raise the Opacity of this shape back up to 100%, and remove the feather on it by dragging it from the list in the Appearance palette to the small trash icon below it.

Step 3

To add some highlights to the edges, draw two shapes as shown below with the Pen tool. Fill them both with white. Change the top shape's Opacity to 75% and the bottom shape to 25%. Also, give both shapes a 2px feather.

Step 4

It may not be evident just yet, but we're now going to add the reflections to the metal. Draw a shape with the Pen tool and position it as shown below. The left color on the gradient slider is white and the right color is 90% gray. Give the shape a 1px feather as well.

For the bottom reflection, draw another shape as shown. The gradient is white to black and the shape has a 1px Feather. Also, lower its Opacity to 50%.

Step 5

Now we'll start on the transparent section of the battery. Begin by drawing the shape shown below with the Pen tool. Once drawn, fill the shape with white and lower its Opacity to 50%.

Hint: An easy way to draw the shape is to draw one half of it - leaving the path open, then, copy, paste, and reflect the copy of the shape to create the other half. Finally, just connect the points with the Pen tool. This also ensures that the final shape will be symmetrical.

Step 6

Now, we could simply use a black to gray gradient on this shape, but we're going to use an opacity mask instead. It's a little more work to create, but it will allow us to change the background behind our battery when we're done. To create the mask, copy and paste the shape in front of the original. Bring its Opacity back up to 100%, and fill it with a gradient as shown below. The left slider is 50% gray and the right slider is black.

Step 7

Now, select both shapes, then in the drop down menu in the Transparency palette select Make Opacity Mask. When you create the mask, you might not notice a change, but change the color of the document background and you'll see the advantages of the opacity mask.

Step 8

We'll now start adding some glare and reflections to make the glass look transparent. Begin by drawing two shapes as shown below. Fill them both with white and lower their Opacities to 75%. Feather the top one by 2px and the bottom one by 3.5px.

Step 9

We'll also add an Opacity Mask to the top highlight. Paste a copy of the top shape in front of itself, bring its Opacity back up to 100%, and remove its Feather. Fill it with a gradient as shown below, going from 75% gray to black. Finally, create an Opacity Mask as we did before.

Step 10

We'll add another reflection to the glass to match the one on the metal. Draw a shape as shown below, fill it with white, give it a 2px Feather, and lower its Opacity to 50%.

Step 11

Follow our routine to add the Opacity Mask. Paste a copy of the shape in front of the original and fill it with a gradient, which goes from 15% gray to 85% gray (don't forget to remove the Feather on the shape).

Step 12

Once again create the Opacity Mask. Also, once you've created the mask, change the shape's blending mode to Screen in the Transparency palette.

Step 13

By now you're probably getting the idea of how to create our reflections. So, draw another shape for a reflection as shown below, then fill it with white. Lower its Opacity to 40% and Feather it by 2px.

Step 14

For the copy of the shape used for the opacity mask, use a 50% gray to black gradient, as shown below.

Step 15

And now? You guessed it. Create the Opacity Mask.

Step 16

Alright, our last reflection! One more time, draw the shape shown below, fill it with white, lower its Opacity to 50%, and Feather it by 2px.

Step 17

Copy and paste the shape to make the Opacity Mask. Use a white to black gradient for the shape.

Step 18

And for the last time, create the Opacity Mask.

Step 19

We'll now add the other metal end cap to our battery, which is quite easy, seeing as they're both identical. Select all of the shapes that make up the end cap, and go to Object > Transform > Reflect. In the dialog window that appears, select the Vertical radio button for the Axis and click Copy. Drag the copied and reflected shapes to the other end of the battery.

Step 20

Creating the positive contact on the battery is fast and easy. Simply select all of the shapes you just used for the metal end cap, then copy and paste them in front. With them all selected, Alt-click and drag on the top or bottom center handle of the group to shrink them vertically. You may also want to shrink them horizontally a bit as well.

Once you've got them the right size, send them to the back (Command + Shift + [ ), and then bring them forward one level (Command + ] ). If done correctly, the contact should be directly behind the metal end cap.

Step 21

The last thing we have to do to finish the battery itself is to add some rounded slivers to represent the inside ends of the glass. Draw the two shapes, as shown below (or just draw one and copy and paste it). Fill the one on the right with white and lower its Opacity to 25%, and fill the one on the left with black and lower its Opacity to 50%. Additionally, change the Blend Mode of the one on the left to Overlay. Finally, Feather both shapes by 3.5px.

Step 22

We'll now work on the final element of the design, the "fuel" (battery energy). Draw a shape with the Pen tool like the one below. You can make the energy level whatever you'd like, as well as whatever color you'd like. I chose about two-thirds full and used a green gradient.

Step 23

Once you have the look you want for the "fuel," send it to the back. Afterward, bring it forward twice so that it is directly in front of the base transparent layer, but behind the reflections.

Step 24

Finally, copy the black rounded sliver shape at the left edge of the glass and drag it to the edge of the "fuel," then change its fill color to white.

Step 25

To finish off the design, add some highlights to the metal parts of the battery by drawing ovals and filling them with white. Next, add a Feather to them and lower their Opacities.

Step 26

Additionally, add an Outer Glow to the "fuel" shape (Effect > Stylize > Outer Glow.). Make sure the Blending Mode is set to Screen. You'll want the highlight color to match the color of the fuel. For my green "fuel," I used a bright lime green color for the glow (#19FF00). Make the Opacity 75% and the Blur 11px.

Conclusion

That's it! You've now got a battery icon that can be used for whatever design you need it for, and even as a modifiable graphic for an interactive animation or application. I hope you've gained some useful techniques and ideas from this tutorial.

Subscribe to the VECTORTUTS RSS Feed to stay up to date with the latest vector tutorials and articles.


Enjoy this Post?

We'd love your vote!

Plus Members

Source Files, Bonus Tutorials and
More for $9 a month for all TUTS+
sites in one subscription.

Join Now

User Comments

( ADD YOURS )
  1. PG

    Max September 6th

    Cool Tut! It looks very nice!!!

    ( Reply )
  2. PG

    tarak_br September 6th

    Awesome tutorial. Great website.
    Thanks a zillion!

    ( Reply )
  3. PG

    Good-Walls September 6th

    Nice job the iPhone battery :D

    ( Reply )
  4. PG

    Harry69 September 6th

    Wow, Pretty nice outcome ;) thanks for sharing

    ( Reply )
  5. PG

    BroOf September 6th

    Thats a really cool icon :D

    ( Reply )
  6. PG

    azerty September 6th

    damn I love it !
    thx a lot !

    ( Reply )
  7. PG

    Simona September 6th

    Cool looking and well explained, I like the transparency effects :) Thanks for sharing.

    ( Reply )
  8. PG

    Grafiko September 6th

    Great final product. Thanks for the tut.

    ( Reply )
  9. PG

    Robin September 6th

    beautiful

    ( Reply )
  10. PG

    daniel September 6th

    very nice design! like the green glow. nice tutorial, thanks a lot.

    ( Reply )
  11. PG

    K3v September 6th

    Looks great! :)

    ( Reply )
  12. PG

    Max September 6th

    gives it a membership that we can download the .ai file like psdtuts.com???

    ( Reply )
  13. PG

    bullardino September 6th

    Awesome one

    ( Reply )
  14. PG

    Grant Friedman September 6th

    I like this one! Great job!

    ( Reply )
  15. PG

    Dainis Graveris September 6th

    Great technique even If I think about myself as amateur..yeah, I see some skill. Nice reflection, looks very realistic.

    Thanks!

    ( Reply )
  16. PG

    Nate September 6th

    Looks HOT! Pretty awesome ending result. Thanks

    ( Reply )
  17. PG

    Braden Keith September 6th

    Wow! that looks great

    ( Reply )
  18. PG

    SniperFox September 6th

    I have a question..and it’s a pretty dumb one, lol.

    I’m new to Illustrator, and I want to know: How do I open a new file with a black background? I can’t figure out how to fill the BG with another color.

    Help, please?

    ( Reply )
  19. PG

    Matty September 7th

    nice, but i cant get started on it, im stuck on the first part – how do you go about creating the metal cap shape?

    ( Reply )
  20. PG

    Max September 7th

    can anyone send me the .ai file?
    On my computer it doesnt look so..
    mcwilli@gmx.net
    icq: 258417685

    ( Reply )
  21. PG

    RabiD September 7th

    wow! looks very nice! thanks so much for this tut ! :)

    ( Reply )
  22. PG

    Jonathan September 7th

    I’ve always liked this icon. Thanks for the tut, it’s pretty cool.

    ( Reply )
  23. PG

    Mikkel September 7th

    Damn! That’s one good looking tutorial. Amazing details. Looking forward to read it.

    ( Reply )
  24. PG

    Max September 7th

    can anyone send me the .ai file?
    On my computer it doesnt look so..
    mcwilli@gmx.net
    icq: 258417685
    pls it doesnt look so on my pc i want to look whats my fault

    ( Reply )
  25. PG

    Bill Labus September 7th

    @Max

    Make sure you’re Illustrator document is in RGB color mode, as opposed to CMYK. At the top menu bar, go to File > Document Color Mode > RGB Color.

    ( Reply )
  26. PG

    Max September 7th

    oh big thanks! That was the Problem!
    Have anyone a tip for me how I can create the metal cap in step 1 symetrical? When I create it it looks so distorted?! In this tut it looks so easy and straigt! Can anyone help me???

    ( Reply )
  27. PG

    Max September 7th

    can you send me the .ai or .eps file pls?
    mcwilli@gmx.net

    ( Reply )
  28. PG

    Lawrence77 September 7th

    wow what a Tut….
    Creator is very genius….
    I LOVE the GREEN color and reflection….
    WOW….

    ( Reply )
  29. PG

    macias September 7th

    very nice scalable glowing :)

    ( Reply )
  30. PG

    OwlBoy September 7th

    iPhone Touch eh?

    ( Reply )
  31. PG

    Shane September 7th

    Jeez – another great tutorial with a fantastic end-result.

    thanks vectortuts.

    ( Reply )
  32. PG

    Bill Labus September 7th

    @SniperFox

    I probably should have explained that. When I say create a document with a black background, it actually involves cheating kinda. In essence, you create a new document and the background is white (technically nothing). Then, select the Rectangle tool, and click once somewhere on the document. A box will appear where you can then type in the exact dimensions of the rectangle- make it the exact same size as your document. Fill it with black (or whatever color), remove the stroke, center it horizontally and vertically on the document, and lock it down.

    And you now have a background.

    ( Reply )
  33. PG

    Matty September 7th

    I have a question, i cant get started on it, im stuck on the first part – how do you go about creating the metal cap shape?

    ( Reply )
  34. PG

    SniperFox September 7th

    @Bill

    Thanks mate :D .

    ( Reply )
  35. PG

    Vector Graphics September 8th

    another great tutorial. Thank you VectorTuts :)

    ( Reply )
  36. PG

    Max September 8th

    Yeah how you created the metal cap in step one?? It looks so straight and symetrical!
    can you may send me the .ai file?
    mcwilli@gmx.net

    ( Reply )
  37. PG

    vane September 8th

    may be it’s a silly but, where can i find “feather” in ICS3?

    ( Reply )
  38. PG

    vane September 8th

    (silly question) ! (sorry!)

    ( Reply )
  39. PG

    NaldzGraphics September 8th

    wow.great tutorial again.keep up the good work as always.

    ( Reply )
  40. PG

    Leandro September 8th

    Thanks, very good.

    Site: http://www.desigart.com

    ( Reply )
  41. PG

    Max September 8th

    can´t anyone send me the .ai or.eps file??
    mcwilli@gmx.net

    ( Reply )
  42. PG

    Bill Labus September 8th

    @OwlBoy

    You’ll have to take that one up with Sean. I distinctly remember writing iPhone / iPod touch. :)

    ( Reply )
  43. PG

    Bill Labus September 8th

    @Leandro

    Your website is freaking awesome! (As is your work) :)

    ( Reply )
  44. PG

    Darrin September 8th

    I dont have a feather option……

    Thanks for the Tut tho tis good.

    ( Reply )
  45. PG

    Darrin September 8th

    My Bad….. I found the feather!

    ( Reply )
  46. PG

    Ali September 8th

    Nice!

    ( Reply )
  47. PG

    Andy September 11th

    Your tutorials are very good!
    Thanks from Argentina!

    ( Reply )
  48. PG

    Alex September 11th

    vista stile
    very nice

    ( Reply )
  49. PG

    Zlatko Nikolic September 16th

    Very good idea and style, good work and OK tutorial – thanks.

    ( Reply )
  50. PG

    Aaron September 16th

    The end result is amazing, although the process is very hard to follow. The end cap, which many people are complaining about, how to do the gradient fill for it (I’ve just gotten Illustrator and I’m used to photoshop, and I’m not sure how to customize the swatches) and all those other things that may seem obvious to you but don’t to a beginner like me who could benefit a lot from tutorials.

    ( Reply )
  51. PG

    BenRulz September 16th

    lovely tutorial….will def try..!!
    keep up the good work..!!

    ( Reply )
  52. PG

    Ferdinand September 17th

    Hey

    This is really a great tutorial.

    Thanks ;o)

    I new in illutrator, so I just have a little question about have to make 80% gray color, in the gradient??

    Thanks again

    ( Reply )
  53. PG

    Cleibo September 17th

    Great tutorial, I followed the steps and made a battery too. Mine is yellow but it looks very nice. Thank you for this!

    ( Reply )
  54. PG

    Jay Man September 24th

    THis is the battery icon on the iphone

    ( Reply )
  55. PG

    ASIF September 24th

    NICE GOOD WORK MEN

    ( Reply )
  56. PG

    Abulafio September 27th

    Simply AMAZING!

    Thank you!

    ( Reply )
  57. PG

    motionman95 September 27th

    Wow! Absolutely awesome tutorial! I was able to follow along in Fireworks CS3 and get the exact same effect.

    Thanks and keep up the good work!

    ( Reply )
  58. PG

    Jeroen November 6th

    great tut! a very good explanation!

    gr

    ( Reply )
  59. PG

    Brewal November 11th

    Great tutorial again !

    One thing missing, an explaination to create the reflexion of the battery on the surface, as appearing on the very final image. I guess I will find a way thru those dammed clipping mask(^^). Still…

    Thanks

    ( Reply )
  60. PG

    Bill Labus November 11th

    You know what really sucks, is that if I had written this tutorial just a couple of months later (as in just recently), all of those transparency masks could be avoided with CS4’s new transparent gradients! Argh!

    Oh well.

    @Brewal

    Sorry I left that out- essentially you just copy the entire finished battery (I’d suggest grouping it first), reflect it over the horizontal axis, and then draw a big rectangle to cover the whole thing (filled with a black to white gradient) and use it to create the transparency mask.

    ( Reply )
    1. PG

      Kamal September 3rd

      Haha! I have never touched Illustrator but i was just wondering why you did twice the work i needed to do something similar on Inkscape :)
      BTW, would you mind if I do a tutorial for this kind of outcome with Inkscape for the Inkscape folks? :)

      Ah, just in case you did not know, Inkscape is another cool vector drawing program. [ http://www.inkscape.org ]

      ( Reply )
  61. PG

    Dan November 17th

    Thanks. Love the opacity mask. Very useful for reflections.

    ( Reply )
  62. PG

    sabin November 22nd

    Love it !

    ( Reply )
  63. PG

    sdvv November 28th

    Btw How is suppose to create the cap?

    Isn’t good this tutorial at all

    ( Reply )
  64. PG

    hark2046 December 1st

    Very good,Thanks

    ( Reply )
  65. PG

    kenneth December 2nd

    anyone a final .ai or.eps file?

    ( Reply )
  66. PG

    Omid December 6th

    Great tut, thanks man,helped me a lot.

    ( Reply )
  67. PG

    Steve January 26th

    I am new to Illustrator, using CS4. How does one get the different % of blacks i.e. 75% black or 65% gray etc.

    ( Reply )
  68. PG

    erwin15155 March 12th

    cool tutorial…..[ learning mode : on ]

    ( Reply )
  69. PG

    Sasha March 28th

    Please reload the picture 4.2!

    ( Reply )
  70. PG

    noname April 14th

    thanks for the tutorial.

    ( Reply )
  71. PG

    CaizrSozei April 20th

    Thank you very very much for this awsome tutorial.. great design, great tutorial =]

    ( Reply )
  72. PG

    CgBaran Tuts May 18th

    Great icon thanks

    ( Reply )
  73. PG

    Naeem May 22nd

    What software i need to crat icons and logos for win xp

    ( Reply )
  74. Thanks a lot Bill !

    ( Reply )
  75. PG

    Matthew June 2nd

    Great tutorial! Explained very clearly, you really make it seem simple

    ( Reply )
  76. PG

    Qushal Shrestha June 16th

    wowwwwwwww….. great job dudes….

    ( Reply )
  77. PG

    Abraham July 10th

    hi cool tut
    but how did u do the reflection of it

    ( Reply )
  78. PG

    Bloo July 25th

    Great Job!… Love this tut. : )

    Just one question.. how do I get that reflection of all the battery just like in the final pic??…

    ( Reply )
  79. PG

    MexiChriS August 2nd

    Okay, if anyone is wanting to learn to develop apps for the iPhone, please VOTE for them and get TUTs to make it happen!!! Vote for iPhone site/tutorials bellow! ….Maybe repost this somewhere yourself, to make it happen sooner, think about it!!!

    iPhone Tuts Site:
    http://psdtuts.uservoice.com/pages/2999-vectortuts-site-suggestions-and-feedback/suggestions/220438-iphone-tuts-site

    Learn To Code For iPhone:
    http://psdtuts.uservoice.com/pages/2997-nettuts-tutorial-suggestions/suggestions/155081-learn-to-code-for-iphone

    DEVTuts+:
    http://psdtuts.uservoice.com/pages/2997-nettuts-tutorial-suggestions/suggestions/245744-devtuts-

    ( Reply )
  80. PG

    Sfenksmmy September 10th

    would like to thank my teacher in turkey like these expressions are very sorry to continue your work ..

    ( Reply )
  81. PG

    toys September 12th

    cool!!!!!
    love this tutorial.
    thanks.

    ( Reply )
  82. PG

    drawr_ur_dream September 15th

    really awesome

    ( Reply )
  83. PG

    Gustavo October 9th

    uauuuuh
    super !!!

    ( Reply )
  84. PG

    dalas October 22nd

    u can do better !!!!!!

    ( Reply )
  85. PG

    batteryboy October 23rd

    so cool, I will try to do one

    ( Reply )
  86. PG

    fatih October 31st

    would like to thank my teacher in turkey like these expressions are very sorry to continue your work

    ( Reply )
  87. PG

    Mustafa October 31st

    Thans

    ( Reply )
  88. PG

    tayfun hakyemez November 13th

    veryyyy!! thanks…

    ( Reply )
  1. Arrow
    Gravatar

    Your Name
    November 13th