Modern icons are real eye candy. In this tutorial you'll learn how to create a professional level Hard Drive icon with shading and lighting the techniques. You will use the the Path Finder Tool, Free Transform and some basic effects, such as Gaussian Blur and Inner Glow.
Start with a 512 x 512 pixel artboard. Select a neutral color from the swatches, then with the rectangle tool, draw a rectangle with the following dimensions: Width 460px, Height 400px.
With the Free Transform tool, drag one of the top corners while holding the Command and the Shift keys. (this command may be tricky. Start dragging, then press and hold the keys). This will allow you to taper the shape like in the picture.
With the rectangle selected, go to Effect > Stylize > Round Corners. Set the radius value to 8px.
Duplicate this shape. You can drag it up with the Option key pressed (for extra accuracy, also hold the Shift key). Fill this shape with a lighter gray.
Draw a 455 px wide and 60 px tall rectangle. Send it to the back of the other two shapes: Right click Menu > Arrange > Send to Back (or Control + Left Square Bracket).
Now taper it like the first rectangle. Drag the bottom corners while holding the Command + Shift keys.
With the rectangle selected, go to Effect > Stylize > Round Corners. This time set the radius to 12px.
Expand the objects appearance by selecting everything and then going to Object > Expand Appearance.
Fill the top plate with a diagonal linear gradient.
Fill the middle shape with a horizontal linear gradient. See the picture for the right values.
At this point you need to fix some of the paths. Add an anchor point where the picture indicates and move it to align with the top shape. It will be easier if Smart Guides are on (View > Smart Guides). Do this on both sides.
Delete the top anchor points of this shape on both sides.
Fill the hard disk "body" part with a linear gradient, like in the picture.
Now apply an inner glow effect to this shape. Effect > Stylize > Inner Glow.
This is going to be the first of several highlights on this tutorial. First copy/paste in place (Command + f ) the top plate. Then remove the fill color and add a 2px white stroke to the copy.
You need to cut off a portion of this shape. Select the top points and delete (with the delete button on the keyboard). Now expand the selection to turn this stroke into a filled shape. Object > Expand.
With the Delete Anchor Point Tool, delete the points indicated in the picture and re-arrange the others. Repeat this procedure on both sides. Change this shape's opacity to 60%.
Make two new copies of the top plate (copy/paste it in place two times) and use the Free Form Transform tool to make the foremost one taller, but less wide.
Extract one shape from another using the Pathfinder tool. The resulting shapes will get a linear gradient like in the picture.
Duplicate the "body" part (copy/paste in place) and add a linear gradient according to the picture. Then send it backward (Command + Left Square Bracket) until the unwanted part is properly hidden below the other shapes. This shape will act like a shadow being cast by the top plate on the "body" part.
Now you'll draw the top plate's embossed details. First create a Rectangle of 135px Height x 315px Width and an ellipse of 250px Height x 315px Width.
With the Free Transform Tool, taper them into the desired shape. Use Command + Shift while dragging.
Select the rectangle and apply a Round Corners effect (Effects > Stylize > Round Corners) with the Radius of 10px. Expand it's appearance (Object > Expand Appearance).
Duplicate the ellipse, creating a smaller one inside it. Move this new ellipse about 3 pixels up (just use the up arrow key on the keyboard).
Select both the bigger ellipse and the rectangle. Weld them using Path Finder.
Adjust the corner point to get a smooth curve here.
Instead of repeating the last step on both sides, to get a symmetrical shape, you'll cut this shape in half, mirror it and then weld the two halves. Start by adding an anchor point to the top line, right in the center, then select all the points from the right side and delete them (with the delete key on keyboard).
Now duplicate this path, reflect it (Object > Transform > Reflect) and weld the two halves using Path Finder. You will need to drag the path with Smart Guides on to have a proper alignment. This is important because if the points aren't perfectly aligned, the paths won't weld.
Duplicate this path (copy/paste in place) and apply an offset path effect with the value of -5 pixels (Effects > Stylize > Offset path).
Move the copy up a little and slightly squeeze it, like in the picture. Expand it's appearance (Object > Expand Appearance).
Select both shapes and extract them using the Path Finder. The result will be two distinct shapes.
Make two copies of the remaining ellipse, one slightly smaller and the other considerably smaller. Arrange them as in the picture. You are done with the other shapes for now, ungroup them and fill each with a distinct color.
Select the two bigger ellipses and extract one from another using the Path Finder. The resulting shape will be an outlined ellipse. Fill it with a distinct color.
Repeat the process with the smaller ellipses. Duplicate, resize/adjust, extract (you may need to arrange the objects order, as the newer, bigger ellipse will now be on top of the smaller one. Just send it backward one time and it should be fine).
Time for some painting. Select the bigger ellipse and fill with a radial gradient, like in the picture.
Select the next ellipse and fill it with the same gradient. Adjust the radius.
For the last ellipse, make some adjustments to the gradient values and radius.
The last shape will also be filled with a radial gradient. This one is a little tricky because you need to manually place it on the exact center of the shape.
Now duplicate this shape and add an Offset Path effect with the value of 0.5px (Effects > Stylize > Offset Path).
Fill the copy with a linear gradient.
Now you'll create more highlights. Select the bigger ellipse and duplicate it (copy/paste in place). Remove the fill and add a 2px white stroke.
Now expand it's appearance. The highlight is filled with a radial gradient that goes from 100% opaque white to 0% opaque white. If the gradient handler doesn't appear, try ungrouping the object prior to applying the gradient. Pay attention to the radius size.
Repeat the process with the other two ellipses.
The final highlight, like the shape beneath it, is a little tricky. Once again, pay attention to the radius size and shape.
Using the pen tool, draw a shape like this on the bottom left edge of the "body".
Now fill it with a linear gradient.
Duplicate and reflect it (Object > Transform > Reflect). Group both shapes, align them in the center of the artboard and finally send them backwards until they're behind the shadow.
Start the bolts by drawing an ellipse with the same height and width of the central ellipse.
Resize down and place it on the bottom right corner of the top plate. Fill the ellipse with a radial gradient.
Duplicate (copy/paste in place), remove the fill color and add a 1px white stroke.
Expand this shape and fill with a radial gradient. You can use the Eyedropper tool to pick the gradient from any other highlight.
Make two smaller copies of the ellipse. Place one slightly above the center and the other slightly below.
Now fix the bottom Ellipse's path. Add an anchor point where indicated, then move the two top points to match the left and right points of the top ellipse. Remember, Smart Guides are your friend.
Duplicate the top ellipse, paint it black and send it behind the shape we just edited.
Time to paint the bolt. Pay attention to the gradient's values and radius.
The bolt needs a highlight too. You should be familiar with the process by now.
Create a star shape with the following values.
Place it in the exact center of the bolt, resize and squeeze it down a little.
Add a highlight this edge. The process is the same.
The bolt is done. Group everything and drag copy to the right corner. To drag a copy, just drag the object while holding Option. Holding the Shift key also locks the dragging direction.
Group this pair of bolts and duplicate them two times. Place one pair right above the hard disk drive's center and the other at the top. Resizing them one pair at a time will allow the bolts to have the size needed to match the icon angle.
For the front LED, first draw a small circle of 20px x 20px.
Fill the circle with a radial gradient with the following values.
Now duplicate this circle, making the copy smaller. Place it slightly above the center.
Fill the new circle with a radial gradient:
Apply an Inner Glow effect (Effect > Stylize > Inner Glow) with the following values:
Now draw a small ellipse inside the top circle and fill it with a linear gradient.
Duplicate the big circle, but no paste in place this time. Instead, drag it down while holding Option and also Shift to lock the drag direction.
Fill the copy with a solid color blue and set it's opacity to 65.
Apply to it a Gaussian Blur (Effects > Blur > Gaussian Blur) with the value of 3.0px.
For the hard disk drive's shadow, just duplicate the top plate shape (drag while holding Option + Shift to lock direction) and send it behind all other shapes.
Resize it down a little and fill it with black.
Apply a Gaussian Blur (Effects > Blur > Gaussian Blur) with the value of 8.0px.
For the hard disk label, draw a black rectangle with 155px width and 60px height. The left edge of the rectangle needs to be in the exact center of the artboard, so you may need to put a guide there to assist you positioning it.
You'll need the Serial ATA logo. A vector version can be found at Seeklogo. I stripped the "S" from it in order to get a better visual composition. Place it inside the rectangle.
Using the Rectangle tool, draw a bar code and put some dummy text below it. Pay attention to the alignment and spacing. When you're done, expand the text (Object > Expand).
Now duplicate the black rectangle by dragging it down while holding Option + Shift, fill it with white and then send it behind the black rectangle.
Select all the label's elements and squeeze them a little on top, bottom and right.
Taper the top right corner of the label. With the Free Transform tool selected, start dragging the corner, then press and hold Command and also Shift to lock the drag direction.
Now select both rectangles (rectangles only) and apply Round Corners effect (Effect > Stylize > Round Corners) with the value of 4px.
Fill the black rectangle with a linear gradient. Also set the highlight (white rectangle) opacity to 75% and everything else (Sata logo, barcode and dummy text) to 45%.
The Icon is almost done. Optionally you can add some highlights to the top plate's sides. The technique is the same as we used for the other highlights: Stroke, expand and fill with the same old radial gradient.
I hope you enjoyed the lesson. More than teaching how to draw a particular icon, this tutorial contains techniques that once mastered, will allow you to create high-quality icons and Illustrations.